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 TypeMethodDescriptionbyte
static int
compare(byte a, byte b)
int
static int
compareUnsigned(byte a, byte b)
static TByte
double
boolean
float
int
hashCode()
static int
hashCode(byte value)
int
intValue()
long
static byte
static byte
toString()
static String
toString(byte value)
static int
toUnsignedInt(byte value)
static long
toUnsignedLong(byte value)
static TByte
valueOf(byte value)
static TByte
static TByte
Methods inherited from class org.teavm.classlib.java.lang.TNumber
shortValue
-
Field Details
-
MIN_VALUE
public static final byte MIN_VALUE- See Also:
- Constant Field Values
-
MAX_VALUE
public static final byte 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
-
TByte
public TByte(byte value) -
TByte
-
-
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
-
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:
compareTo
in 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
-