Package net.aifusion.metamodel
Class UInt32
java.lang.Object
java.lang.Number
net.aifusion.metamodel.UInt32
- All Implemented Interfaces:
Serializable
Class to represent an unsigned 32-bit integer
- Author:
- Sharad Singhal
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Return the dataValue of this unsigned integer as a double dataValueboolean
Compares this unsigned 64-bit integer object with the specified object for equalityfloat
int
hashCode()
int
intValue()
long
Return the dataValue of this unsigned integer as a long dataValuetoString()
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MAX_VALUE
public static final long MAX_VALUEmaximum dataValue possible for the unsigned integer- See Also:
-
MIN_VALUE
public static final long MIN_VALUEminimum dataValue possible for the unsigned integer- See Also:
-
-
Constructor Details
-
UInt32
public UInt32(long val) Create an unsigned 32 number from a long dataValue- Parameters:
val
- - dataValue for this unsigned integer. Must be 0 <= val < 2^32
-
UInt32
Create an unsigned 64 number from a string- Parameters:
val
- - input string containing integer dataValue 0 <= val < 2^32
-
-
Method Details
-
longValue
public long longValue()Return the dataValue of this unsigned integer as a long dataValue -
doubleValue
public double doubleValue()Return the dataValue of this unsigned integer as a double dataValue- Specified by:
doubleValue
in classNumber
- Returns:
- - double dataValue containing this unsigned integer
-
equals
Compares this unsigned 64-bit integer object with the specified object for equality -
toString
-
hashCode
public int hashCode() -
intValue
public int intValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-