public abstract class ValuedEnum extends Enum
| Modifier | Constructor and Description |
|---|---|
protected |
ValuedEnum(String name,
int value) |
protected |
ValuedEnum(String name,
int value,
Map map) |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get value of enum item.
|
boolean |
isEqualTo(ValuedEnum other)
Test if enum item is equal in value to other enum.
|
boolean |
isGreaterThan(ValuedEnum other)
Test if enum item is greater than in value to other enum.
|
boolean |
isGreaterThanOrEqual(ValuedEnum other)
Test if enum item is greater than or equal in value to other enum.
|
boolean |
isLessThan(ValuedEnum other)
Test if enum item is less than in value to other enum.
|
boolean |
isLessThanOrEqual(ValuedEnum other)
Test if enum item is less than or equal in value to other enum.
|
String |
toString()
Override toString method to produce human readable description.
|
protected ValuedEnum(String name, int value)
public final int getValue()
public final boolean isEqualTo(ValuedEnum other)
other - the other enumpublic final boolean isGreaterThan(ValuedEnum other)
other - the other enumpublic final boolean isGreaterThanOrEqual(ValuedEnum other)
other - the other enumpublic final boolean isLessThan(ValuedEnum other)
other - the other enumpublic final boolean isLessThanOrEqual(ValuedEnum other)
other - the other enumCopyright © 2004-2020 EPICS. All Rights Reserved.