public static enum StateBasedEndorsement.RoleType extends java.lang.Enum<StateBasedEndorsement.RoleType>
Enum Constant and Description |
---|
RoleTypeMember
RoleTypeMember identifies an org's member identity.
|
RoleTypePeer
RoleTypePeer identifies an org's peer identity.
|
Modifier and Type | Method and Description |
---|---|
static StateBasedEndorsement.RoleType |
forVal(java.lang.String val) |
java.lang.String |
getVal() |
static StateBasedEndorsement.RoleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StateBasedEndorsement.RoleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateBasedEndorsement.RoleType RoleTypeMember
public static final StateBasedEndorsement.RoleType RoleTypePeer
public static StateBasedEndorsement.RoleType[] values()
for (StateBasedEndorsement.RoleType c : StateBasedEndorsement.RoleType.values()) System.out.println(c);
public static StateBasedEndorsement.RoleType 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 nullpublic java.lang.String getVal()
public static StateBasedEndorsement.RoleType forVal(java.lang.String val)
val
-