Package org.yamcs.parameter
Class EnumeratedValue
- java.lang.Object
-
- org.yamcs.parameter.Value
-
- org.yamcs.parameter.EnumeratedValue
-
public class EnumeratedValue extends Value
An enumerated value is a value that has both an integer and a string representation.
-
-
Constructor Summary
Constructors Constructor Description EnumeratedValue(long longValue, String stringValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getSint64Value()
String
getStringValue()
org.yamcs.protobuf.Yamcs.Value.Type
getType()
int
hashCode()
String
toString()
-
Methods inherited from class org.yamcs.parameter.Value
getBinaryValue, getBooleanValue, getDoubleValue, getFloatValue, getSint32Value, getTimestampValue, getUint32Value, getUint64Value
-
-
-
-
Constructor Detail
-
EnumeratedValue
public EnumeratedValue(long longValue, String stringValue)
-
-
Method Detail
-
getSint64Value
public long getSint64Value()
- Overrides:
getSint64Value
in classValue
-
getStringValue
public String getStringValue()
- Overrides:
getStringValue
in classValue
-
-