public static enum VoteResponse.RESULT extends Enum<VoteResponse.RESULT>
| Modifier and Type | Method and Description |
|---|---|
static VoteResponse.RESULT |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VoteResponse.RESULT[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VoteResponse.RESULT UNKNOWN
public static final VoteResponse.RESULT ACCEPT
public static final VoteResponse.RESULT REJECT_UNKNOWN_LEADER
public static final VoteResponse.RESULT REJECT_UNEXPECTED_LEADER
public static final VoteResponse.RESULT REJECT_EXPIRED_VOTE_TERM
public static final VoteResponse.RESULT REJECT_ALREADY_VOTED
public static final VoteResponse.RESULT REJECT_ALREADY_HAS_LEADER
public static final VoteResponse.RESULT REJECT_TERM_NOT_READY
public static final VoteResponse.RESULT REJECT_TERM_SMALL_THAN_LEDGER
public static final VoteResponse.RESULT REJECT_EXPIRED_LEDGER_TERM
public static final VoteResponse.RESULT REJECT_SMALL_LEDGER_END_INDEX
public static final VoteResponse.RESULT REJECT_TAKING_LEADERSHIP
public static VoteResponse.RESULT[] values()
for (VoteResponse.RESULT c : VoteResponse.RESULT.values()) System.out.println(c);
public static VoteResponse.RESULT valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.