public final class UnsignedShort extends UnsignedNumber
hexLetters| Constructor and Description |
|---|
UnsignedShort(byte c) |
UnsignedShort(int c) |
UnsignedShort(long c) |
UnsignedShort(short c) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(UnsignedNumber other) |
double |
doubleValue() |
boolean |
equals(Object other) |
float |
floatValue() |
static UnsignedShort |
fromBytes(byte[] c) |
static UnsignedShort |
fromBytes(byte[] c,
int idx) |
static UnsignedShort |
fromString(String c) |
static UnsignedShort |
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.
|
short |
shortValue() |
String |
toString() |
toHexString, toHexStringpublic UnsignedShort(byte c)
public UnsignedShort(short c)
public UnsignedShort(int c)
public UnsignedShort(long c)
public static UnsignedShort fromBytes(byte[] c)
public static UnsignedShort fromBytes(byte[] c, int idx)
public static UnsignedShort fromString(String c)
public static UnsignedShort fromString(String c, int radix)
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic short shortValue()
shortValue in class Numberpublic byte[] getBytes()
UnsignedNumbergetBytes in class UnsignedNumberpublic int compareTo(UnsignedNumber other)
compareTo in class UnsignedNumberpublic boolean equals(Object other)
equals in class UnsignedNumberpublic int hashCode()
hashCode in class UnsignedNumberpublic String toString()
toString in class UnsignedNumberpublic void shiftRight(int nBits)
UnsignedNumbershiftRight in class UnsignedNumbernBits - the number of positions to shiftpublic void shiftLeft(int nBits)
UnsignedNumbershiftLeft in class UnsignedNumbernBits - the number of positions to shiftCopyright © 2005–2017 Red5. All rights reserved.