Package org.xwiki.diff.display
Enum InlineDiffChunk.Type
- java.lang.Object
-
- java.lang.Enum<InlineDiffChunk.Type>
-
- org.xwiki.diff.display.InlineDiffChunk.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<InlineDiffChunk.Type>
- Enclosing class:
- InlineDiffChunk<E>
public static enum InlineDiffChunk.Type extends Enum<InlineDiffChunk.Type>
The possible types of chunks you can find within an in-line diff.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDED
A chunk that has been added.DELETED
A chunk that has been removed.UNMODIFIED
A chunk that stays unmodified.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InlineDiffChunk.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static InlineDiffChunk.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 InlineDiffChunk.Type ADDED
A chunk that has been added. All the elements that form this chunk have been added.
-
DELETED
public static final InlineDiffChunk.Type DELETED
A chunk that has been removed. All the elements that form this chunk have been added.
-
UNMODIFIED
public static final InlineDiffChunk.Type UNMODIFIED
A chunk that stays unmodified. The elements of this chunk are neither added nor removed. They indicate the context where a change has been made.
-
-
Method Detail
-
values
public static InlineDiffChunk.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 (InlineDiffChunk.Type c : InlineDiffChunk.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 InlineDiffChunk.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
-
-