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 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
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-