Class UnsignedLong
- java.lang.Object
-
- java.lang.Number
-
- org.apache.axis2.databinding.types.UnsignedLong
-
- All Implemented Interfaces:
Serializable
,Comparable
public class UnsignedLong extends Number implements Comparable
Custom class for supporting primitive XSD data type UnsignedLong- See Also:
- XML Schema 3.3.21, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BigInteger
lValue
-
Constructor Summary
Constructors Constructor Description UnsignedLong()
UnsignedLong(double value)
UnsignedLong(long lValue)
UnsignedLong(String stValue)
UnsignedLong(BigInteger value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
int
compareTo(Object o)
double
doubleValue()
boolean
equals(Object obj)
float
floatValue()
int
hashCode()
int
intValue()
static boolean
isValid(BigInteger value)
long
longValue()
short
shortValue()
String
toString()
-
-
-
Field Detail
-
lValue
protected BigInteger lValue
-
-
Constructor Detail
-
UnsignedLong
public UnsignedLong()
-
UnsignedLong
public UnsignedLong(double value) throws NumberFormatException
- Throws:
NumberFormatException
-
UnsignedLong
public UnsignedLong(BigInteger value) throws NumberFormatException
- Throws:
NumberFormatException
-
UnsignedLong
public UnsignedLong(long lValue) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
UnsignedLong
public UnsignedLong(String stValue) throws NumberFormatException
- Throws:
NumberFormatException
-
-
Method Detail
-
isValid
public static boolean isValid(BigInteger value)
-
shortValue
public short shortValue()
- Overrides:
shortValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
- Returns:
- the value 0 if the argument is an UnsignedLong numerically equal to this UnsignedLong; a value less than 0 if the argument is an UnsignedLong numerically greater than this UnsignedLong; and a value greater than 0 if the argument is an UnsignedLong numerically less than this UnsignedLong.
-
-