public enum RevisionType extends Enum<RevisionType>
Type of the revision.
| Enum Constant and Description |
|---|
ADD
Indicates that the entity was added (persisted) at that revision.
|
DEL
Indicates that the entity was deleted (removed) at that revision.
|
MOD
Indicates that the entity was modified (one or more of its fields) at that revision.
|
| Modifier and Type | Method and Description |
|---|---|
static RevisionType |
fromRepresentation(Object representation) |
Byte |
getRepresentation() |
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 ADD
Indicates that the entity was added (persisted) at that revision.
public static final RevisionType MOD
Indicates that the entity was modified (one or more of its fields) at that revision.
public static final RevisionType DEL
Indicates that the entity was deleted (removed) at that revision.
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 nullpublic Byte getRepresentation()
public static RevisionType fromRepresentation(Object representation)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.