Enum Class SlotComparison
- All Implemented Interfaces:
Serializable
,Comparable<SlotComparison>
,Constable
Enum corresponding to numerical comparisons digout slots can perform.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEqualsGreater thanGreater than or equalsLess thanLess than or equals -
Method Summary
Modifier and TypeMethodDescriptionstatic SlotComparison
fromIndex
(int index) Fetches the enum associated with the index value.byte
getIndex()
Returns the associated index number for the enum (used in serialization)static SlotComparison
Returns the enum constant of this class with the specified name.static SlotComparison[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kEquals
Equals -
kLessThan
Less than -
kGreaterThan
Greater than -
kLessThanOrEquals
Less than or equals -
kGreaterThanOrEquals
Greater than or equals
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIndex
public byte getIndex()Returns the associated index number for the enum (used in serialization)- Returns:
- the associated index number for the enum.
-
fromIndex
Fetches the enum associated with the index value.- Parameters:
index
- int containing index value; (values considered mod 5)- Returns:
- corresponding enum
-