|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Number
|
+--com.sshtools.util.UnsignedInteger
Implements a true unsigned integer type storing the value as a series of bytes. This is helpful to the SSH API because there is no unsigned integer type in Java and all SSH integers are unsigned we need to be sure that we correclty interpret the integers send and received.
| Constructor Summary | |
UnsignedInteger(byte[] value)
Constructor for the UnsignedInteger32 object |
|
UnsignedInteger(int value)
Constructor for the UnsignedInteger32 object |
|
UnsignedInteger(java.lang.Integer value)
Constructor for the UnsignedInteger32 object |
|
UnsignedInteger(long value)
Constructor for the UnsignedInteger32 object |
|
UnsignedInteger(java.lang.Long value)
Constructor for the UnsignedInteger32 object |
|
UnsignedInteger(java.lang.String value)
Constructor for the UnsignedInteger32 object |
|
| Method Summary | |
UnsignedInteger |
add(UnsignedInteger value)
Description of the Method |
double |
doubleValue()
Description of the Method |
boolean |
equals(int value)
Description of the Method |
boolean |
equals(long value)
Description of the Method |
boolean |
equals(UnsignedInteger value)
Description of the Method |
float |
floatValue()
Description of the Method |
int |
intValue()
Description of the Method |
long |
longValue()
Description of the Method |
static void |
main(java.lang.String[] args)
Description of the Method |
UnsignedInteger |
multiply(UnsignedInteger value)
Description of the Method |
UnsignedInteger |
subtract(UnsignedInteger value)
Description of the Method |
java.lang.String |
toString()
Returns a decimal formatted string |
| Methods inherited from class java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UnsignedInteger(int value)
value - Description of the Parameterpublic UnsignedInteger(long value)
value - Description of the Parameterpublic UnsignedInteger(java.lang.String value)
value - Description of the Parameterpublic UnsignedInteger(java.lang.Integer value)
value - Description of the Parameterpublic UnsignedInteger(byte[] value)
value - Description of the Parameterpublic UnsignedInteger(java.lang.Long value)
value - Description of the Parameter| Method Detail |
public int intValue()
intValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic boolean equals(UnsignedInteger value)
value - Description of the Parameter
public boolean equals(int value)
value - Description of the Parameter
public boolean equals(long value)
value - Description of the Parameter
public java.lang.String toString()
toString in class java.lang.Objectpublic UnsignedInteger add(UnsignedInteger value)
value - Description of the Parameter
public UnsignedInteger subtract(UnsignedInteger value)
value - Description of the Parameter
public UnsignedInteger multiply(UnsignedInteger value)
value - Description of the Parameter
public static void main(java.lang.String[] args)
args - Description of the Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||