java.io.Serializable
, java.lang.Comparable<ListRole.Mode>
public static enum ListRole.Mode extends java.lang.Enum<ListRole.Mode>
Enum Constant | Description |
---|---|
ALL |
Role could be performed only if set of keys could play all sub-roles
|
ANY |
Role could be performed if set of keys could play any role of the list
|
QUORUM |
Role could be played if set of keys could play any quorrum set of roles, e.g.
|
Modifier and Type | Method | Description |
---|---|---|
static ListRole.Mode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ListRole.Mode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListRole.Mode ALL
public static final ListRole.Mode ANY
public static final ListRole.Mode QUORUM
ListRole.setQuorum(int)
methodpublic static ListRole.Mode[] values()
for (ListRole.Mode c : ListRole.Mode.values()) System.out.println(c);
public static ListRole.Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null