Enum Change.ChangeType
- java.lang.Object
-
- java.lang.Enum<Change.ChangeType>
-
- org.apache.commons.compress.changes.Change.ChangeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Change.ChangeType>
- Enclosing class:
- Change<E extends ArchiveEntry>
static enum Change.ChangeType extends java.lang.Enum<Change.ChangeType>
Enumerates types of changes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
Add.DELETE
Delete.DELETE_DIR
Delete directory.MOVE
Not used.
-
Constructor Summary
Constructors Modifier Constructor Description private
ChangeType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Change.ChangeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Change.ChangeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELETE
public static final Change.ChangeType DELETE
Delete.
-
ADD
public static final Change.ChangeType ADD
Add.
-
MOVE
public static final Change.ChangeType MOVE
Not used.
-
DELETE_DIR
public static final Change.ChangeType DELETE_DIR
Delete directory.
-
-
Method Detail
-
values
public static Change.ChangeType[] 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 (Change.ChangeType c : Change.ChangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Change.ChangeType 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
-
-