Package org.teavm.classlib.java.lang
Class TShort
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TNumber
org.teavm.classlib.java.lang.TShort
- All Implemented Interfaces:
TSerializable
,TComparable<TShort>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare(short a, short b)
int
static int
compareUnsigned(short a, short b)
static TShort
double
boolean
float
int
hashCode()
static int
hashCode(short value)
int
intValue()
long
static short
parseShort(String s)
static short
parseShort(String s, int radix)
static short
reverseBytes(short i)
short
toString()
static String
toString(short value)
static int
toUnsignedInt(short value)
static long
toUnsignedLong(short value)
static TShort
valueOf(short value)
static TShort
static TShort
-
Field Details
-
MIN_VALUE
public static final short MIN_VALUE- See Also:
- Constant Field Values
-
MAX_VALUE
public static final short MAX_VALUE- See Also:
- Constant Field Values
-
TYPE
-
SIZE
public static final int SIZE- See Also:
- Constant Field Values
-
BYTES
public static final int BYTES- See Also:
- Constant Field Values
-
-
Constructor Details
-
TShort
public TShort(short value) -
TShort
- Throws:
TNumberFormatException
-
-
Method Details
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classTNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classTNumber
-
shortValue
public short shortValue()- Overrides:
shortValue
in classTNumber
-
valueOf
-
toString
-
toString
-
equals
-
hashCode
public int hashCode() -
hashCode
public static int hashCode(short value) -
compare
public static int compare(short a, short b) -
compareUnsigned
public static int compareUnsigned(short a, short b) -
compareTo
- Specified by:
compareTo
in interfaceTComparable<TShort>
-
toUnsignedInt
public static int toUnsignedInt(short value) -
toUnsignedLong
public static long toUnsignedLong(short value) -
parseShort
- Throws:
TNumberFormatException
-
parseShort
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
decode
- Throws:
TNumberFormatException
-
reverseBytes
public static short reverseBytes(short i)
-