It is part of our effort to provide support for both J2SE and J2ME platforms.
Important Note
some of the methods have been modified from their J2SE parents. Refer to the description of each method for specific changes.
| Modifier and Type | Field and Description |
|---|---|
| private static ResourceBundle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the ceiling of the rational number p / q.numerator p, int denominator (must be different from zero) q)Answers the most negative (i.e. closest to negative infinity) integer value which is greater than or equal to the number obtained by dividing the first argument p by the second argument q. |
| public static void | exec(String[]
array containing the program to execute and its arguments prog, String[] array of strings, each element of which has environment
variable settings in the format name=value envp, String the working directory of the new process, or null if the new
process should inherit the working directory of the caller workingDir)Execute prog[0] in a separate platform process if the underlying platform supports this. |
| public static String | Returns: the message for the given keythe key to look up key)Returns the NLS'ed message for the given argument. |
| public static String | |
| public static int | Returns: 2 raised to the power of the argumentan int value between 0 and 30 (inclusive) n)Returns 2 raised to the power of the argument. |
| public static int | Returns: the closest integer to the rational number p / qnumerator p, int denominator (must be different from zero) q)Answers the result of rounding to the closest integer the number obtained by dividing the first argument p by the second argument q. |
| msgs | back to summary |
|---|---|
| private static ResourceBundle msgs | |
| Compatibility | back to summary |
|---|---|
| public Compatibility() | |
| ceil | back to summary |
|---|---|
| public static int ceil(int p, int q) Answers the most negative (i.e. closest to negative infinity) integer value which is greater than or equal to the number obtained by dividing the first argument p by the second argument q.
| |
| exec | back to summary |
|---|---|
| public static void exec(String[] prog, String[] envp, String workingDir) throws IOException Execute prog[0] in a separate platform process if the underlying platform supports this. The new process inherits the environment of the caller.
| |
| getMessage | back to summary |
|---|---|
| public static String getMessage(String key) Returns the NLS'ed message for the given argument. This is only being called from SWT.
| |
| getMessage | back to summary |
|---|---|
| public static String getMessage(String key, Object[] args) | |
| pow2 | back to summary |
|---|---|
| public static int pow2(int n) Returns 2 raised to the power of the argument.
| |
| round | back to summary |
|---|---|
| public static int round(int p, int q) Answers the result of rounding to the closest integer the number obtained by dividing the first argument p by the second argument q. Important Note the j2me version has an additional restriction on the arguments. p must be within the range 0 - 32767 (inclusive). q must be within the range 1 - 32767 (inclusive).
| |