Package jmri.util
Enum CompareUtil.CompareOperation
- java.lang.Object
-
- java.lang.Enum<CompareUtil.CompareOperation>
-
- jmri.util.CompareUtil.CompareOperation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CompareUtil.CompareOperation>
- Enclosing class:
- CompareUtil
public static enum CompareUtil.CompareOperation extends java.lang.Enum<CompareUtil.CompareOperation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Equal
GreaterThan
GreaterThanOrEqual
LessThan
LessThanOrEqual
NotEqual
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static CompareUtil.CompareOperation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CompareUtil.CompareOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LessThan
public static final CompareUtil.CompareOperation LessThan
-
LessThanOrEqual
public static final CompareUtil.CompareOperation LessThanOrEqual
-
Equal
public static final CompareUtil.CompareOperation Equal
-
GreaterThanOrEqual
public static final CompareUtil.CompareOperation GreaterThanOrEqual
-
GreaterThan
public static final CompareUtil.CompareOperation GreaterThan
-
NotEqual
public static final CompareUtil.CompareOperation NotEqual
-
-
Method Detail
-
values
public static CompareUtil.CompareOperation[] 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 (CompareUtil.CompareOperation c : CompareUtil.CompareOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompareUtil.CompareOperation 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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<CompareUtil.CompareOperation>
-
-