Package software.amazon.smithy.waiters
Class Acceptor
- java.lang.Object
- 
- software.amazon.smithy.waiters.Acceptor
 
- 
- 
Constructor SummaryConstructors Constructor Description Acceptor(AcceptorState state, Matcher<?> matcher)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static AcceptorfromNode(Node node)Creates an Acceptor from aNode.Matcher<?>getMatcher()Gets the matcher used to test if the acceptor.AcceptorStategetState()Gets the state to transition to if matched.inthashCode()NodetoNode()Converts a value to aNode.
 
- 
- 
- 
Constructor Detail- 
Acceptorpublic Acceptor(AcceptorState state, Matcher<?> matcher) - Parameters:
- state- State the acceptor transitions to when matched.
- matcher- The matcher to match against.
 
 
- 
 - 
Method Detail- 
getStatepublic AcceptorState getState() Gets the state to transition to if matched.- Returns:
- Acceptor state to transition to.
 
 - 
getMatcherpublic Matcher<?> getMatcher() Gets the matcher used to test if the acceptor.- Returns:
- Returns the matcher.
 
 - 
fromNodepublic static Acceptor fromNode(Node node) Creates an Acceptor from aNode.- Parameters:
- node- Node to create the Acceptor from.
- Returns:
- Returns the created Acceptor.
- Throws:
- ExpectationNotMetException- if the given Node is invalid.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-