com.sshtools.j2ssh.io
Class UnsignedInteger64
java.lang.Object
java.lang.Number
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
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. |
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MAX_VALUE
public static final java.math.BigInteger MAX_VALUE
MIN_VALUE
public static final java.math.BigInteger MIN_VALUE
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
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.