Package org.apache.axis.types
Class UnsignedLong
- java.lang.Object
-
- java.lang.Number
-
- org.apache.axis.types.UnsignedLong
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UnsignedLong>
public class UnsignedLong extends java.lang.Number implements java.lang.Comparable<UnsignedLong>
Custom class for supporting primitive XSD data type UnsignedLong- Author:
- Chris Haddad
- See Also:
- XML Schema 3.3.21, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.math.BigInteger
lValue
-
Constructor Summary
Constructors Constructor Description UnsignedLong()
UnsignedLong(double value)
UnsignedLong(long lValue)
UnsignedLong(java.lang.String stValue)
UnsignedLong(java.math.BigInteger value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
int
compareTo(UnsignedLong obj)
double
doubleValue()
boolean
equals(java.lang.Object obj)
float
floatValue()
int
hashCode()
int
intValue()
static boolean
isValid(java.math.BigInteger value)
long
longValue()
short
shortValue()
java.lang.String
toString()
-
-
-
Constructor Detail
-
UnsignedLong
public UnsignedLong()
-
UnsignedLong
public UnsignedLong(double value) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
UnsignedLong
public UnsignedLong(java.math.BigInteger value) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
UnsignedLong
public UnsignedLong(long lValue) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
UnsignedLong
public UnsignedLong(java.lang.String stValue) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
-
Method Detail
-
isValid
public static boolean isValid(java.math.BigInteger value)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(UnsignedLong obj)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UnsignedLong>
-
byteValue
public byte byteValue()
- Overrides:
byteValue
in classjava.lang.Number
-
shortValue
public short shortValue()
- Overrides:
shortValue
in classjava.lang.Number
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
-