Package com.atlassian.bitbucket.content
Enum Class ChangeType
- All Implemented Interfaces:
Serializable,Comparable<ChangeType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA new file was added.An existing file was copied to create a new file.An existing file was deleted.An existing file was modified.An existing file was moved to a new path.An SCM-specific change has occurred for which there is no known generic alias. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeTypeReturns the enum constant of this class with the specified name.static ChangeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
A new file was added. -
COPY
An existing file was copied to create a new file. -
DELETE
An existing file was deleted. -
MODIFY
An existing file was modified. -
MOVE
An existing file was moved to a new path.Note: Renaming a file moves it from an old name to a new one, which also changes its path. As such, a move may affect a file's name, directory or both.
-
UNKNOWN
An SCM-specific change has occurred for which there is no known generic alias.
-
-
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
-