Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.util
Class Debug  view Debug download Debug.java

java.lang.Object
  extended bycom.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
 

Field Detail

debugEnabled

private static boolean debugEnabled
Specifies whether to display debug statements.

Constructor Detail

Debug

public Debug()
Method Detail

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.