@Embeddable public class TokenStatus extends Object implements FlowStatus, Comparable<TokenStatus>, Chainable<TokenStatus>
ordinal()
.
FlowStatus
.
This is just one possible implementation; however the API developer is not restricted to just using this.TestConsumerTokenStatus
,
Serialized FormConstructor and Description |
---|
TokenStatus() |
TokenStatus(Consumer<TokenStatus> register) |
TokenStatus(String name,
int ordinal,
Consumer<TokenStatus> register) |
TokenStatus(String name,
int ordinal,
TokenStatus parent,
Consumer<TokenStatus> register) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TokenStatus o) |
boolean |
equals(Object obj) |
String |
getName() |
Integer |
getOrdinal() |
TokenStatus |
getParent() |
int |
hashCode() |
String |
name()
The name of the state
|
int |
ordinal()
The order in which the Flow proceeds represented by an integer
|
void |
setName(String name) |
void |
setOrdinal(Integer ordinal) |
void |
setParent(TokenStatus parent) |
public TokenStatus()
public TokenStatus(Consumer<TokenStatus> register)
register
- as Consumer
that registers the constantspublic TokenStatus(String name, int ordinal, Consumer<TokenStatus> register)
name
- as Stringordinal
- as int (higher number means later in the flow)register
- as Consumer
that registers the constants. (Nullable)public TokenStatus(String name, int ordinal, TokenStatus parent, Consumer<TokenStatus> register)
name
- as Stringordinal
- as int (higher number means later in the flow)parent
- as TokenStatus
as parent typeregister
- as Consumer
that registers the constants. (Nullable)public String getName()
public void setName(String name)
name
- the name to setpublic Integer getOrdinal()
public void setOrdinal(Integer ordinal)
ordinal
- the ordinal to setpublic TokenStatus getParent()
public void setParent(TokenStatus parent)
parent
- the parent to setpublic String name()
FlowStatus
name
in interface FlowStatus
public int ordinal()
FlowStatus
ordinal
in interface FlowStatus
public int compareTo(TokenStatus o)
compareTo
in interface Comparable<TokenStatus>
Copyright © 2018. All rights reserved.