public final class UnsignedLong extends UnsignedNumber
hexLetters
Constructor and Description |
---|
UnsignedLong(byte c) |
UnsignedLong(int c) |
UnsignedLong(long c) |
UnsignedLong(Random random)
Construct a new random UnsignedLong.
|
UnsignedLong(short c) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UnsignedNumber other) |
double |
doubleValue() |
boolean |
equals(Object other) |
float |
floatValue() |
static UnsignedLong |
fromBytes(byte[] c) |
static UnsignedLong |
fromBytes(byte[] c,
int offset) |
static UnsignedLong |
fromString(String c) |
static UnsignedLong |
fromString(String c,
int radix) |
byte[] |
getBytes()
Get a byte array representation of the number.
|
int |
hashCode() |
int |
intValue() |
long |
longValue() |
void |
shiftLeft(int nBits)
Perform a bit left shift of the value.
|
void |
shiftRight(int nBits)
Perform a bit right shift of the value.
|
String |
toString() |
toHexString, toHexString
byteValue, shortValue
public UnsignedLong(byte c)
public UnsignedLong(short c)
public UnsignedLong(int c)
public UnsignedLong(long c)
public UnsignedLong(Random random)
random
- a Random handlerpublic static UnsignedLong fromBytes(byte[] c)
public static UnsignedLong fromBytes(byte[] c, int offset)
public static UnsignedLong fromString(String c)
public static UnsignedLong fromString(String c, int radix)
public byte[] getBytes()
UnsignedNumber
getBytes
in class UnsignedNumber
public String toString()
toString
in class UnsignedNumber
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int compareTo(UnsignedNumber other)
compareTo
in class UnsignedNumber
public boolean equals(Object other)
equals
in class UnsignedNumber
public int hashCode()
hashCode
in class UnsignedNumber
public void shiftRight(int nBits)
UnsignedNumber
shiftRight
in class UnsignedNumber
nBits
- the number of positions to shiftpublic void shiftLeft(int nBits)
UnsignedNumber
shiftLeft
in class UnsignedNumber
nBits
- the number of positions to shiftCopyright © 2006-2012 The Red5 Project