Class Printer

java.lang.Object
solvers.queueingnet.treeAlgorithms.Printer

public abstract class Printer extends Object
Wrapper class for printing to console.
Author:
Ben Homer, 2014.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Printer
    The static Printer instance to be used for printing to console.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Printer
    Creates a static Printer instance depending on the VERBOSE flag.
    abstract void
    Prints the specified string.
    abstract void
    Prints the specified string and newline.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • out

      public static Printer out
      The static Printer instance to be used for printing to console.
  • Constructor Details

    • Printer

      public Printer()
  • Method Details

    • create

      public static Printer create()
      Creates a static Printer instance depending on the VERBOSE flag.
      Returns:
      The static Printer instance.
    • print

      public abstract void print(String s)
      Prints the specified string.
      Parameters:
      s - The string to print.
    • println

      public abstract void println(String s)
      Prints the specified string and newline.
      Parameters:
      s - The string to print.