java.lang.Object
com.aendvari.common.util.Debug
- public class Debug
- extends java.lang.Object
Utility class for printing out debug information.
This class is only meant for on/off of System.out.println().
|
Field Summary |
private static boolean |
debugEnabled
Specifies whether to display debug statements. |
|
Constructor Summary |
Debug()
|
|
Method Summary |
static boolean |
getDebug()
Returns whether debugging is active. |
static void |
println(java.lang.Object value)
Prints an object to the output, if debugging is active. |
static void |
setDebug(boolean debug)
Sets debugging activation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debugEnabled
private static boolean debugEnabled
- Specifies whether to display debug statements.
Debug
public Debug()
getDebug
public static boolean getDebug()
- Returns whether debugging is active.
setDebug
public static void setDebug(boolean debug)
- Sets debugging activation.
println
public static void println(java.lang.Object value)
- Prints an object to the output, if debugging is active.