|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.util.MathUtil
public final class MathUtil
Static helpers for working with numbers.
Maybe not always the fastest solution to call in here, but working. Also usable for seeing examples and cutting code for manual inlining.
Method Summary | |
---|---|
static void |
assertDouble(double d)
Asserts that the given double is not invalid for calculation. |
static MathUtil |
getInstance()
Returns the singleton instance of this class. |
static boolean |
isDouble(double d)
Tests that the given double is not invalid for calculation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MathUtil getInstance()
This method is useless for now as all methods are static. It may be used in future if VM-global configuration will be put to the state of the instance.
#
public static boolean isDouble(double d)
It must not be one of:
d
- the double to test.
public static void assertDouble(double d) throws IllegalArgumentException
It must not be one of:
d
- the double to test.
IllegalArgumentException
- if the assertion fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |