Package software.amazon.smithy.waiters
Class Acceptor
- java.lang.Object
-
- software.amazon.smithy.waiters.Acceptor
-
-
Constructor Summary
Constructors Constructor Description Acceptor(AcceptorState state, Matcher<?> matcher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static Acceptor
fromNode(Node node)
Creates an Acceptor from aNode
.Matcher<?>
getMatcher()
Gets the matcher used to test if the acceptor.AcceptorState
getState()
Gets the state to transition to if matched.int
hashCode()
Node
toNode()
Converts a value to aNode
.
-
-
-
Constructor Detail
-
Acceptor
public Acceptor(AcceptorState state, Matcher<?> matcher)
- Parameters:
state
- State the acceptor transitions to when matched.matcher
- The matcher to match against.
-
-
Method Detail
-
getState
public AcceptorState getState()
Gets the state to transition to if matched.- Returns:
- Acceptor state to transition to.
-
getMatcher
public Matcher<?> getMatcher()
Gets the matcher used to test if the acceptor.- Returns:
- Returns the matcher.
-
fromNode
public 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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-