Utilpublic class Util extends Object Set of static utility functions for simple repetitive operations. |
Methods Summary |
---|
public static void | checkForPermission(int permission, boolean ignoreInterruptedException)
MIDletSuite suite = Scheduler.getScheduler().getMIDletSuite();
try {
suite.checkForPermission(permission, null);
} catch (InterruptedException ie) {
if (!ignoreInterruptedException) {
throw new SecurityException(
"Interrupted while trying to ask the user permission");
}
}
| public static void | checkForPermission(int permission)
checkForPermission(permission, true);
| public static void | checkRange(double val, double minimum, double maximum, java.lang.String exceptionComment)
if (val < minimum || val > maximum) {
throw new IllegalArgumentException(exceptionComment + val);
}
if (Double.isNaN(val)) {
throw new IllegalArgumentException(exceptionComment + "NaN");
}
|
|