public enum ChangeType extends Enum<ChangeType>
| Enum Constant and Description |
|---|
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.
|
UNKNOWN
An SCM-specific change has occurred for which there is no known generic alias.
|
| Modifier and Type | Method and Description |
|---|---|
static ChangeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChangeType ADD
public static final ChangeType COPY
public static final ChangeType DELETE
public static final ChangeType MODIFY
public static final ChangeType MOVE
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.
public static final ChangeType UNKNOWN
public static ChangeType[] values()
for (ChangeType c : ChangeType.values()) System.out.println(c);
public static ChangeType 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 nullCopyright © 2023 Atlassian. All rights reserved.