com.sshtools.j2ssh.io
Class UnsignedInteger64

java.lang.Object
  extended by java.lang.Number
      extended by com.sshtools.j2ssh.io.UnsignedInteger64
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class UnsignedInteger64
extends java.lang.Number
implements java.io.Serializable, java.lang.Comparable

Version:
$Revision: 1.14 $
Author:
$author$
See Also:
Serialized Form

Field Summary
static java.math.BigInteger MAX_VALUE
           
static java.math.BigInteger MIN_VALUE
           
 
Constructor Summary
UnsignedInteger64(java.math.BigInteger input)
          Creates a new UnsignedInteger64 object.
UnsignedInteger64(byte[] bval)
          Creates a new UnsignedInteger64 object.
UnsignedInteger64(java.lang.String sval)
          Creates a new UnsignedInteger64 object.
 
Method Summary
static UnsignedInteger64 add(UnsignedInteger64 x, int y)
           
static UnsignedInteger64 add(UnsignedInteger64 x, UnsignedInteger64 y)
           
 java.math.BigInteger bigIntValue()
           
 int compareTo(java.lang.Object val)
           
 double doubleValue()
           
 boolean equals(java.lang.Object o)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final java.math.BigInteger MAX_VALUE

MIN_VALUE

public static final java.math.BigInteger MIN_VALUE
Constructor Detail

UnsignedInteger64

public UnsignedInteger64(java.lang.String sval)
                  throws java.lang.NumberFormatException
Creates a new UnsignedInteger64 object.

Parameters:
sval -
Throws:
java.lang.NumberFormatException

UnsignedInteger64

public UnsignedInteger64(byte[] bval)
                  throws java.lang.NumberFormatException
Creates a new UnsignedInteger64 object.

Parameters:
bval -
Throws:
java.lang.NumberFormatException

UnsignedInteger64

public UnsignedInteger64(java.math.BigInteger input)
Creates a new UnsignedInteger64 object.

Parameters:
input -
Throws:
java.lang.NumberFormatException
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:

bigIntValue

public java.math.BigInteger bigIntValue()
Returns:

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number
Returns:

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number
Returns:

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number
Returns:

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number
Returns:

compareTo

public int compareTo(java.lang.Object val)
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
val -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:

add

public static UnsignedInteger64 add(UnsignedInteger64 x,
                                    UnsignedInteger64 y)
Parameters:
x -
y -
Returns:

add

public static UnsignedInteger64 add(UnsignedInteger64 x,
                                    int y)
Parameters:
x -
y -
Returns:


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.