org.xwiki.diff
Enum MergeConfiguration.Version

java.lang.Object
  extended by java.lang.Enum<MergeConfiguration.Version>
      extended by org.xwiki.diff.MergeConfiguration.Version
All Implemented Interfaces:
Serializable, Comparable<MergeConfiguration.Version>
Enclosing class:
MergeConfiguration<E>

public static enum MergeConfiguration.Version
extends Enum<MergeConfiguration.Version>

One of the merged versions.


Enum Constant Summary
CURRENT
          The current version.
NEXT
          The new version.
PREVIOUS
          The common ancestor.
 
Method Summary
static MergeConfiguration.Version valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MergeConfiguration.Version[] 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

PREVIOUS

public static final MergeConfiguration.Version PREVIOUS
The common ancestor.


NEXT

public static final MergeConfiguration.Version NEXT
The new version.


CURRENT

public static final MergeConfiguration.Version CURRENT
The current version.

Method Detail

values

public static MergeConfiguration.Version[] 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 (MergeConfiguration.Version c : MergeConfiguration.Version.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MergeConfiguration.Version 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