All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.algorithms.Printing

java.lang.Object
   |
   +----COM.objectspace.jgl.algorithms.Printing

public final class Printing
extends Object
Printing is a class that contains generic printing algorithms.

See Also:
PrintingExamples

Method Index

 o print(Container)
Print the contents of the container to the standard output stream, System.out.
 o print(InputIterator, InputIterator)
Print the contents of the data structure associated with a particular iterator to the standard output stream, System.out.
 o println(Container)
Print the contents of the container to the standard output stream, System.out, followed by a newline.
 o println(InputIterator, InputIterator)
Print the contents of the data structure associated with a particular iterator to the standard output stream, System.out, followed by a newline.
 o toString(Container, String)
Return a string that describes a container.
 o toString(InputIterator, InputIterator)
Return a string that describes the contents of the sequence associated with an iterator.

Methods

 o toString
 public static String toString(Container container,
                               String name)
Return a string that describes a container.

Parameters:
container - The container to describe.
name - The type of the container.
Returns:
A string that describes the container.
 o toString
 public static String toString(InputIterator first,
                               InputIterator last)
Return a string that describes the contents of the sequence associated with an iterator.

Parameters:
first - An iterator positioned at the first element to describe.
last - An iterator positioned immediately after the last element to describe.
Returns:
A string that describes the container's contents.
Throws: IllegalArgumentException
If the iterators are incompatible.
 o print
 public static void print(InputIterator first,
                          InputIterator last)
Print the contents of the data structure associated with a particular iterator to the standard output stream, System.out.

Parameters:
first - An iterator positioned at the first element to print.
last - An iterator positioned immediately after the last element to print.
Throws: IllegalArgumentException
If the iterators are incompatible.
 o print
 public static void print(Container container)
Print the contents of the container to the standard output stream, System.out.

Parameters:
container - The container to describe.
 o println
 public static void println(InputIterator first,
                            InputIterator last)
Print the contents of the data structure associated with a particular iterator to the standard output stream, System.out, followed by a newline.

Parameters:
first - An iterator positioned at the first element to print.
last - An iterator positioned immediately after the last element to print.
Throws: IllegalArgumentException
If the iterators are incompatible.
 o println
 public static void println(Container container)
Print the contents of the container to the standard output stream, System.out, followed by a newline.

Parameters:
container - The container to describe.

All Packages  Class Hierarchy  This Package  Previous  Next  Index