J2SE Interface | Availability in CLDC |
---|---|
Clonable | Not available in CLDC. |
Comparable | Not available in CLDC. |
Runnable | Fully available in CLDC. |
J2SE Class | Availability in CLDC |
---|---|
Boolean | Partially contained; see Table B.72 for details. |
Byte | Partially contained; see Table B.73 for details. |
Character | Partially contained; see Table B.74 for details. |
Character.Subset | Not available in CLDC. |
Character.UnicodeBlock | Not available in CLDC. |
Class | Partially contained; see Table B.75 for details. |
ClassLoader | Not available in CLDC. |
Compiler | Not available in CLDC. |
Double | Partially contained in CLDC-NG; see Table B.76 for details. |
Float | Partially contained in CLDC-NG; see Table B.77 for details. |
InheritableThreadLocal | Not available in CLDC. |
Integer | Partially contained; see Table B.78 for details. |
Long | Partially contained; see Table B.79 for details. |
Math | Partially contained; see Table B.80 for details. |
Number | Not available in CLDC. |
Object | Partially contained. The CLDC version lacks the clone() and finalize() methods that are provided in J2SE. |
Package | Not available in CLDC. |
Process | Not available in CLDC. |
Runtime | Partially contained; see the section “Runtime” for details. |
RuntimePermission | Not available in CLDC. |
SecurityManager | Not available in CLDC. |
Short | Partially contained; see Table B.81 for details. |
StrictMath | Not available in CLDC. |
String | Partially contained; see Table B.82 for details. |
StringBuffer | Partially contained; see Table B.83 for details. |
System | Partially contained; see Table B.84 for details. |
Thread | Partially contained; see Table B.85 for details. |
ThreadGroup | Not available in CLDC. |
ThreadLocal | Not available in CLDC. |
Throwable | Partially contained; see Table B.86 for details. |
Void | Not available in CLDC. |
Method | Availability in CLDC |
---|---|
Boolean(boolean value) | Available in CLDC. |
Boolean(String s) | Not available in CLDC.
Workaround:
Boolean (s != null && s.toLowerCase(). equals ("true")); |
Boolean booleanValue() | Available in CLDC. |
Boolean equals(Object obj) | Available in CLDC. |
static boolean getBoolean(String name) | Not available in CLDC.
Workaround:
(name != null && name.toLowerCase(). equals ("true")); |
int hashCode() | Available in CLDC. |
String toString() | Available in CLDC. |
static Boolean valueOf(String s) | Not available in CLDC.
Workaround:
new Boolean (s != null && s. toLowerCase().equals ("true")); |
Method | Availability in CLDC-NG |
---|---|
Double(double value) | Available in CLDC-NG. |
Double(String s) | Not available in CLDC-NG. |
byte byteValue() | Available in CLDC-NG. |
int compareTo(Double anotherDouble) | Not available in CLDC-NG. |
int compareTo(Object o) | Not available in CLDC-NG. |
static long doubleToLongBits(double value) | Available in CLDC-NG. |
static long doubleToRawLongBits(double value) | Not available in CLDC-NG. |
double doubleValue() | Available in CLDC-NG. |
boolean equals(Object obj) | Available in CLDC-NG. |
float floatValue() | Available in CLDC-NG. |
int hashCode() | Available in CLDC-NG. |
int intValue() | Available in CLDC-NG. |
boolean isInfinite() | Available in CLDC-NG. |
static boolean isInfinite(double v) | Available in CLDC-NG. |
boolean isNaN() | Available in CLDC-NG. |
static boolean isNaN(double v) | Available in CLDC-NG. |
static double longBitsToDouble(long bits) | Available in CLDC-NG. |
long longValue() | Available in CLDC-NG. |
static double parseDouble(String s) | Available in CLDC-NG. |
short shortValue() | Available in CLDC-NG. |
String toString() | Available in CLDC-NG. |
static String toString(double d) | Available in CLDC-NG. |
static Double valueOf(String s) | Available in CLDC-NG. |
Method | Availability in CLDC-NG |
---|---|
Float(double value) | Available in CLDC-NG. |
Float(float value) | Available in CLDC-NG. |
Float(String s) | Not available in CLDC-NG. |
byte byteValue() | Available in CLDC-NG. |
int compareTo(Float anotherFloat) | Not available in CLDC-NG. |
int compareTo(Object o) | Not available in CLDC-NG. |
double doubleValue() | Available in CLDC-NG. |
boolean equals(Object obj) | Available in CLDC-NG. |
static int floatToIntBits(float value) | Available in CLDC-NG. |
static int floatToRawIntBits(float value) | Not available in CLDC-NG. |
float floatValue() | Available in CLDC-NG. |
int hashCode() | Available in CLDC-NG. |
static float intBitsToFloat(int bits) | Available in CLDC-NG. |
int intValue() | Available in CLDC-NG. |
boolean isInfinite() | Available in CLDC-NG. |
static boolean isInfinite(float v) | Available in CLDC-NG. |
boolean isNaN() | Available in CLDC-NG. |
static boolean isNaN(float v) | Available in CLDC-NG. |
long longValue() | Available in CLDC-NG. |
static float parseFloat(String s) | Available in CLDC-NG. |
short shortValue() | Available in CLDC-NG. |
String toString() | Available in CLDC-NG. |
static String toString(float f) | Available in CLDC-NG. |
static Float valueOf(String s) | Available in CLDC-NG. |
Method | Alternative/Workaround |
---|---|
static double abs(double a) | Available in CLDC-NG. |
static float abs(float a) | Available in CLDC-NG. |
static int abs(int a) | Available in CLDC. |
static long abs(long a) | Available in CLDC. |
static double acos(double a) | Not available in CLDC. |
static double asin(double a) | Not available in CLDC. |
static double atan(double a) | Not available in CLDC. |
static double atan2(double a, double b) | Not available in CLDC. |
static double ceil(double a) | Available in CLDC-NG. |
static double cos(double a) | Not available in CLDC. |
static double exp(double a) | Not available in CLDC. |
static double floor(double a) | Available in CLDC-NG. |
static double IEEEremainder (double f1, double f2) | Not available in CLDC. |
static double log(double a) | Not available in CLDC. |
static double max(double a, double b) | Available in CLDC-NG. |
static float max(float a, float b) | Available in CLDC-NG. |
static int max(int a, int b) | Available in CLDC. |
static long max(long a, long b) | Available in CLDC. |
static double min(double a, double b) | Available in CLDC-NG. |
static float min(float a, float b) | Available in CLDC-NG. |
static int min(int a, int b) | Available in CLDC. |
static long min(long a, long b) | Available in CLDC. |
static double pow(double a, double b) | Not available in CLDC. |
static double random() | Not available in CLDC. |
static double rint(double a) | Not available in CLDC. |
static long round(double a) | Not available in CLDC. |
static int round(float a) | Not available in CLDC. |
static double sin(double a) | Not available in CLDC. |
static double sqrt(double a) | Not available in CLDC. |
static double tan(double a) | Not available in CLDC. |
static double toDegrees(double angrad) | Available in CLDC-NG. |
static double toRadians(double angdeg) | Available in CLDC-NG. |
Because executing additional processes or finalization is not supported in CLDC, the only methods of the J2SE Runtime class are listed as follows:
void exit(int status)
long freeMemory()
void gc()
static Runtime getRuntime()
long totalMemory()