public enum RevisionType extends Enum<RevisionType>
Revision types dictate the semantics of new revisions of a distributed primitive. They indicate how the new revision is initialized and how it relates to prior revisions.
Enum Constant and Description |
---|
ISOLATE
A distributed primitive that is initialized from the state of the previous revision and thereafter diverges.
|
NONE
A distributed primitive that is initialized with an empty state.
|
PROPAGATE
A distributed primitive that is initialized from the state of the previous revision and to which changes to
the previous revision are propagated.
|
VERSION
A distributed primitive that is initialized from the previous revision and sets the previous revision to
read-only mode.
|
Modifier and Type | Method and Description |
---|---|
static RevisionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RevisionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RevisionType NONE
public static final RevisionType VERSION
public static final RevisionType PROPAGATE
public static final RevisionType ISOLATE
public static RevisionType[] values()
for (RevisionType c : RevisionType.values()) System.out.println(c);
public static RevisionType 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 null