org.apache.axis2.databinding.types
Class UnsignedLong

java.lang.Object
  extended by java.lang.Number
      extended by 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
protected  BigInteger lValue
           
 
Constructor Summary
UnsignedLong()
           
UnsignedLong(BigInteger value)
           
UnsignedLong(double value)
           
UnsignedLong(long lValue)
           
UnsignedLong(String stValue)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

byteValue

public byte byteValue()
Overrides:
byteValue in class Number

shortValue

public short shortValue()
Overrides:
shortValue in class Number

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
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.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.