public static enum ParikhVector.Comparison extends java.lang.Enum<ParikhVector.Comparison>
| Enum Constant and Description |
|---|
EQUAL
The two vectors were equal.
|
GREATER_THAN
The first vector was larger than the second vector.
|
INCOMPARABLE
The two vectors were incomparable.
|
LESS_THAN
The first vector was smaller than the second vector.
|
| Modifier and Type | Method and Description |
|---|---|
int |
asInt()
Convert this comparison result to a value that is mostly compatible with
Comparable.compareTo(T). |
static ParikhVector.Comparison |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParikhVector.Comparison[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParikhVector.Comparison LESS_THAN
public static final ParikhVector.Comparison GREATER_THAN
public static final ParikhVector.Comparison EQUAL
public static final ParikhVector.Comparison INCOMPARABLE
public static ParikhVector.Comparison[] values()
for (ParikhVector.Comparison c : ParikhVector.Comparison.values()) System.out.println(c);
public static ParikhVector.Comparison valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int asInt()
Comparable.compareTo(T). If the two vectors were incomparable, which is not allowed by the Comparable interface, zero is also returned.