Package net.aifusion.metamodel
Class UInt16
java.lang.Object
java.lang.Number
net.aifusion.metamodel.UInt16
- All Implemented Interfaces:
Serializable
Class to represent an unsigned 16-bit integer
- Author:
- Sharad Singhal
- See Also:
-
Field Details
-
MAX_VALUE
public static final int MAX_VALUEmaximum dataValue possible for the unsigned integer- See Also:
-
MIN_VALUE
public static final int MIN_VALUEminimum dataValue possible for the unsigned integer- See Also:
-
-
Constructor Details
-
UInt16
Create an unsigned 16-bit integer from a string dataValue- Parameters:
val
- - string containing unsigned 16-bit integer
-
UInt16
public UInt16(int i) Create an unsigned 16-bit integer from an integer dataValue- Parameters:
i
- - integer dataValue containing 16 bit integer
-
-
Method Details
-
intValue
public int intValue() -
longValue
public long longValue() -
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
equals
-
hashCode
public int hashCode() -
toString
-