|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.Defense
public final class Defense
Internal class for defensive programming.
Even though these methods are declared as public, there are not guaranteed to be stable or work outside JEuclid.
http://en.wikipedia.org/wiki/Defensive_programming
| Method Summary | |
|---|---|
static void |
assertTrue(boolean b,
String string)
Makes sure a condition is true. |
static void |
fileExists(File file)
Makes sure a file exists. |
static void |
notNull(Object o,
String name)
Makes sure a parameter is not null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void notNull(Object o,
String name)
o - parametername - name of the parameterpublic static void fileExists(File file)
file - the file
public static void assertTrue(boolean b,
String string)
b - conditionstring - value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||