Java Reference
In-Depth Information
Table B. 7 3. Methods of the Class Byte
Method
Availability in CLDC
Byte(byte value)
Available in CLDC.
Byte(String s)
Not available in CLDC.
byte byteValue()
Available in CLDC.
int compareTo(Byte
anotherByte)
Not available in CLDC. Workaround: compare the return
values of byteValue()
int compareTo(Object o)
Not available in CLDC.
static Byte decode(String
nm)
Not available in CLDC.
Workaround: Determine radix using
String.startsWith() , then apply parseByte() with
the corresponding radix.
double doubleValue()
Not available in CLDC.
Available in CLDC.
boolean equals(Object
obj)
float floatValue()
Not available in CLDC.
int hashCode()
Available in CLDC.
int intValue()
Not available in CLDC.
Workaround:
(int) byteValue()
long longValue()
Not available in CLDC.
Workaround:
(long) byteValue()
static byte
parseByte(String s)
Available in CLDC.
Available in CLDC.
static byte
parseByte(String s, int
radix)
Short shortValue()
Not available in CLDC.
Workaround:
(short) byteValue()
String toString()
Available in CLDC.
static String
toString(byte b)
Not available in CLDC.
Workaround:
""+b
or
new Byte (b).toString()
Not available in CLDC.
static Byte
valueOf(String s)
Workaround:
Search WWH ::




Custom Search