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 intcompare(short a, short b) intstatic intcompareUnsigned(short a, short b) static TShortdoublebooleanfloatinthashCode()static inthashCode(short value) intintValue()longstatic shortparseShort(String s) static shortparseShort(String s, int radix) static shortreverseBytes(short i) shorttoString()static StringtoString(short value) static inttoUnsignedInt(short value) static longtoUnsignedLong(short value) static TShortvalueOf(short value) static TShortstatic TShort
-
Field Details
-
MIN_VALUE
public static final short MIN_VALUE- See Also:
-
MAX_VALUE
public static final short MAX_VALUE- See Also:
-
TYPE
-
SIZE
public static final int SIZE- See Also:
-
BYTES
public static final int BYTES- See Also:
-
-
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:
floatValuein classTNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classTNumber
-
shortValue
public short shortValue()- Overrides:
shortValuein 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:
compareToin 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)
-