Package com.day.cq.commons
Enum DiffInfo.TYPE
- java.lang.Object
-
- java.lang.Enum<DiffInfo.TYPE>
-
- com.day.cq.commons.DiffInfo.TYPE
-
- All Implemented Interfaces:
Serializable
,Comparable<DiffInfo.TYPE>
- Enclosing class:
- DiffInfo
public static enum DiffInfo.TYPE extends Enum<DiffInfo.TYPE>
The general information about the diff
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDED
this resource is new and not contained in the old versionMOVED
this resource is in both versions but at different locationsREMOVED
this resource has been removed and is only in the old versionSAME
resource is in both versions at the same location
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DiffInfo.TYPE
valueOf(String name)
Returns the enum constant of this type with the specified name.static DiffInfo.TYPE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDED
public static final DiffInfo.TYPE ADDED
this resource is new and not contained in the old version
-
REMOVED
public static final DiffInfo.TYPE REMOVED
this resource has been removed and is only in the old version
-
MOVED
public static final DiffInfo.TYPE MOVED
this resource is in both versions but at different locations
-
SAME
public static final DiffInfo.TYPE SAME
resource is in both versions at the same location
-
-
Method Detail
-
values
public static DiffInfo.TYPE[] 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 (DiffInfo.TYPE c : DiffInfo.TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiffInfo.TYPE valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-