Class Debug
- java.lang.Object
-
- Debug
-
public class Debug extends Object
- Version:
- 1.0
- Author:
- Lewis Dunstall Brighton University
-
-
Constructor Summary
Constructors Constructor Description Debug()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertTrue(boolean ok, String fmt, Object... params)Display a fatal message if the assertion failsstatic voiderror(String fmt, Object... params)Display a fatal messagestatic booleanset(boolean state)Set true/false to print debugging informationstatic voidtrace(String fmt, Object... params)Display text for debugging purposes
-
-
-
Method Detail
-
set
public static boolean set(boolean state)
Set true/false to print debugging information- Parameters:
state- Debugging true false- Returns:
- The old state
-
trace
public static void trace(String fmt, Object... params)
Display text for debugging purposes- Parameters:
fmt- The same as printf etcparams- The parameters to fmt
-
assertTrue
public static void assertTrue(boolean ok, String fmt, Object... params)Display a fatal message if the assertion fails- Parameters:
ok- true if all is okfmt- The same as printf etcparams- The parameters to fmt
-
-