Enum OperationType
- java.lang.Object
-
- java.lang.Enum<OperationType>
-
- org.projectnessie.versioned.persist.adapter.events.OperationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OperationType>
public enum OperationType extends java.lang.Enum<OperationType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGN_REFCOMMITCRETE_REFDELETE_REFMERGEREPOSITORY_ERASEDREPOSITORY_INITIALIZEDTRANSPLANT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCommitting()Whether the event / operation-type is one that wrote (at least) one commit.booleanisReference()Whether the event / operation-type is one that modified a named reference.static OperationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OperationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMIT
public static final OperationType COMMIT
-
TRANSPLANT
public static final OperationType TRANSPLANT
-
MERGE
public static final OperationType MERGE
-
CRETE_REF
public static final OperationType CRETE_REF
-
DELETE_REF
public static final OperationType DELETE_REF
-
ASSIGN_REF
public static final OperationType ASSIGN_REF
-
REPOSITORY_INITIALIZED
public static final OperationType REPOSITORY_INITIALIZED
-
REPOSITORY_ERASED
public static final OperationType REPOSITORY_ERASED
-
-
Method Detail
-
values
public static OperationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OperationType c : OperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isCommitting
public boolean isCommitting()
Whether the event / operation-type is one that wrote (at least) one commit.
-
isReference
public boolean isReference()
Whether the event / operation-type is one that modified a named reference.
-
-