Package org.xwiki.diff
Enum Delta.Type
- java.lang.Object
-
- java.lang.Enum<Delta.Type>
-
- org.xwiki.diff.Delta.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Delta.Type>
public static enum Delta.Type extends Enum<Delta.Type>
The kind of modification to apply on the list.- Version:
- $Id: 71863b4888c035be4d03fc95420ca02b0f66ed55 $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Delta.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Delta.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHANGE
public static final Delta.Type CHANGE
Change one or several following elements.
-
DELETE
public static final Delta.Type DELETE
Deleted one or several following elements.
-
INSERT
public static final Delta.Type INSERT
Insert one or several following elements.
-
-
Method Detail
-
values
public static Delta.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 (Delta.Type c : Delta.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 Delta.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
-
-