Package com.luciad.format.asterix
Class TLcdASTERIXMappedInteger
java.lang.Object
java.lang.Number
com.luciad.format.asterix.TLcdASTERIXMappedInteger
- All Implemented Interfaces:
Serializable
Extension of
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:
- 0
->
Default - 1
->
Unlawful interference - 2
->
Radio-communication failure - 3
->
Emergency
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.- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdASTERIXMappedInteger
(int aValue, String aValueDescription) Constructs a newTLcdASTERIXMappedInteger
with an integer number and a string describing that value. -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
TLcdASTERIXMappedInteger
Constructs a newTLcdASTERIXMappedInteger
with an integer number and a string describing that value.- Parameters:
aValue
- The integer value.aValueDescription
- The human readable description for that value.
-
-
Method Details
-
getValueDescription
Returns theString
that represents the value of the object.- Returns:
- The
String
that represents the value of the object.
-
toString
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
longValue
public long longValue() -
intValue
public int intValue() -
stringValue
Returns the String value of theNumber
object.- Returns:
- The String value of the
Number
object.
-
equals
-
hashCode
public int hashCode()
-