public abstract class UnsignedNumber extends Number
Modifier and Type | Field and Description |
---|---|
protected static char[] |
hexLetters |
Constructor and Description |
---|
UnsignedNumber() |
Modifier and Type | Method and Description |
---|---|
abstract int |
compareTo(UnsignedNumber other) |
abstract boolean |
equals(Object other) |
abstract byte[] |
getBytes()
Get a byte array representation of the number.
|
abstract int |
hashCode() |
abstract void |
shiftLeft(int nBits)
Perform a bit left shift of the value.
|
abstract void |
shiftRight(int nBits)
Perform a bit right shift of the value.
|
String |
toHexString() |
String |
toHexString(boolean pad) |
abstract String |
toString() |
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
public abstract byte[] getBytes()
public abstract void shiftRight(int nBits)
nBits
- the number of positions to shiftpublic abstract void shiftLeft(int nBits)
nBits
- the number of positions to shiftpublic abstract int compareTo(UnsignedNumber other)
public String toHexString()
public String toHexString(boolean pad)
Copyright © 2006-2012 The Red5 Project