ovm.polyd
Enum Utils.Diff

java.lang.Object
  extended by java.lang.Enum<Utils.Diff>
      extended by ovm.polyd.Utils.Diff
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Utils.Diff>
Enclosing class:
Utils

public static enum Utils.Diff
extends java.lang.Enum<Utils.Diff>

Used to describe the result of a comparison between two classes or arrays of classes.

See Also:
Utils

Enum Constant Summary
Crossed
          When comparing two arrays of classes, for some of the positions the first class is a strict subclass of the second while for other positions the first class is a strict superclass of the second.
Equal
          The first argument is identical to the second.
NotCompatible
          The two classes are not related, meaning that none of the two is equal or a subclass of the other.
Sub
          The first argument is a strict subclass of the second.
Super
          The first argument is a strict superclass of the second.
 
Method Summary
static Utils.Diff valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Utils.Diff[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Sub

public static final Utils.Diff Sub
The first argument is a strict subclass of the second. If arrays are compared, all arguments of the first array are equal or subclasses of the second, but they are not all identical.


Equal

public static final Utils.Diff Equal
The first argument is identical to the second.


Super

public static final Utils.Diff Super
The first argument is a strict superclass of the second. If arrays are compared, all arguments of the first array are equal or superclasses of the second, but they are not all identical.


Crossed

public static final Utils.Diff Crossed
When comparing two arrays of classes, for some of the positions the first class is a strict subclass of the second while for other positions the first class is a strict superclass of the second. For all of the positions, the corresponding pairs of classes are related (either equal, or sub, or super).


NotCompatible

public static final Utils.Diff NotCompatible
The two classes are not related, meaning that none of the two is equal or a subclass of the other. When comparing arrays of classes, at least for one of the positions the corresponding classes are not related.

Method Detail

values

public static final Utils.Diff[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Utils.Diff c : Utils.Diff.values())
        System.out.println(c);

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

valueOf

public static Utils.Diff valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name