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 BigIntegerlValue
-
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 bytebyteValue()intcompareTo(Object o)doubledoubleValue()booleanequals(Object obj)floatfloatValue()inthashCode()intintValue()static booleanisValid(BigInteger value)longlongValue()shortshortValue()StringtoString()
-
-
-
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:
shortValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin 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.
-
-