Package org.teavm.classlib.java.lang
Class TByte
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TNumber
org.teavm.classlib.java.lang.TByte
- All Implemented Interfaces:
TSerializable,TComparable<TByte>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytestatic intcompare(byte a, byte b) intstatic intcompareUnsigned(byte a, byte b) static TBytedoublebooleanfloatinthashCode()static inthashCode(byte value) intintValue()longstatic bytestatic bytetoString()static StringtoString(byte value) static inttoUnsignedInt(byte value) static longtoUnsignedLong(byte value) static TBytevalueOf(byte value) static TBytestatic TByteMethods inherited from class org.teavm.classlib.java.lang.TNumber
shortValue
-
Field Details
-
MIN_VALUE
public static final byte MIN_VALUE- See Also:
-
MAX_VALUE
public static final byte MAX_VALUE- See Also:
-
TYPE
-
SIZE
public static final int SIZE- See Also:
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
TByte
public TByte(byte value) -
TByte
-
-
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
-
byteValue
public byte byteValue() -
valueOf
-
toString
-
toString
-
equals
-
hashCode
public int hashCode() -
hashCode
public static int hashCode(byte value) -
compare
public static int compare(byte a, byte b) -
compareUnsigned
public static int compareUnsigned(byte a, byte b) -
compareTo
- Specified by:
compareToin interfaceTComparable<TByte>
-
toUnsignedInt
public static int toUnsignedInt(byte value) -
toUnsignedLong
public static long toUnsignedLong(byte value) -
parseByte
- Throws:
TNumberFormatException
-
parseByte
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
decode
- Throws:
TNumberFormatException
-