public class TLcdASTERIXMappedInteger extends Number
java.lang.Number
that represents an integer value.
The difference with a regular java.lang.Integer
is that the integer value has
some specific meaning that corresponds to a human readable name for the integer number.
The ASTERIX specifications often use integer values to choose from a list of possibilities,
for example for TLcdASTERIXCategory1.I001_020_SI_DS1_DS2
it specifies:
TLcdASTERIXMappedInteger
, so
the value of such properties will return an object of this class. The method
intValue()
returns the actual integer value, and getValueDescription()
and
toString()
return the human readable description.
Please refer to ALcdASTERIXModelDescriptor
for more information about the properties
of domain objects.Constructor and Description |
---|
TLcdASTERIXMappedInteger(int aValue,
String aValueDescription)
Constructs a new
TLcdASTERIXMappedInteger with an integer number
and a string describing that value. |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
String |
getValueDescription()
Returns the
String that represents the value of the object. |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
String |
stringValue()
Returns the String value of the
Number object. |
String |
toString() |
byteValue, shortValue
public TLcdASTERIXMappedInteger(int aValue, String aValueDescription)
TLcdASTERIXMappedInteger
with an integer number
and a string describing that value.aValue
- The integer value.aValueDescription
- The human readable description for that value.public String getValueDescription()
String
that represents the value of the object.String
that represents the value of the object.public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public String stringValue()
Number
object.Number
object.