Package org.eclipse.jgit.transport
Enum Class ReceiveCommand.Type
- All Implemented Interfaces:
Serializable
,Comparable<ReceiveCommand.Type>
,Constable
- Enclosing class:
- ReceiveCommand
Type of operation requested.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate a new ref; the ref must not already exist.Delete an existing ref; the ref should already exist.Update an existing ref with a fast-forward update.Update an existing ref by potentially discarding objects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReceiveCommand.Type
Returns the enum constant of this class with the specified name.static ReceiveCommand.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE
Create a new ref; the ref must not already exist. -
UPDATE
Update an existing ref with a fast-forward update.During a fast-forward update no changes will be lost; only new commits are inserted into the ref.
-
UPDATE_NONFASTFORWARD
Update an existing ref by potentially discarding objects.The current value of the ref is not fully reachable from the new value of the ref, so a successful command may result in one or more objects becoming unreachable.
-
DELETE
Delete an existing ref; the ref should already exist.
-
-
Constructor Details
-
Type
private Type()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-