org.xwiki.diff
Enum Delta.Type

java.lang.Object
  extended by java.lang.Enum<Delta.Type>
      extended by org.xwiki.diff.Delta.Type
All Implemented Interfaces:
Serializable, Comparable<Delta.Type>
Enclosing interface:
Delta<E>

public static enum Delta.Type
extends Enum<Delta.Type>

The kind of modification to apply on the list.

Version:
$Id: d451e7339ecf473cd39d91246cba1674bb102dff $

Enum Constant Summary
CHANGE
          Change one or several following elements.
DELETE
          Deleted one or several following elements.
INSERT
          Insert one or several following elements.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2004-2013 XWiki. All Rights Reserved.