|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectre.Util
public class Util
A few useful utility messages for doing the following:
| Field Summary | |
|---|---|
static boolean |
debug
Set this to true to print out messages with the debug() methods. |
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static void |
assertTrue(boolean test,
String message)
Test whether a condition is true, and fail with a message if it is not. |
static void |
assertTrue(boolean test,
String format,
Object... args)
Test whether a condition is true, and fail with a message if it is not. |
static void |
debug(String message)
Print a message to the terminal, if debugging messages has been enabled by setting debug. |
static void |
debug(String format,
Object... args)
Print a message to the terminal using printf-style arguments, if debugging messages has been enabled by setting debug. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean debug
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static void assertTrue(boolean test,
String message)
public static void assertTrue(boolean test,
String format,
Object... args)
This version takes printf-style arguments to make formatting easier.
See PrintStream.printf(String, Object...) for more details.
public static void debug(String message)
debug.
public static void debug(String format,
Object... args)
debug.
See PrintStream.printf(String, Object...) for more details.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||