org.jutil
Class TCollection

java.lang.Object
  extended by org.jutil.TCollection

public final class TCollection
extends java.lang.Object

This is the TAssert utility code class.


Constructor Summary
TCollection()
          Ensure that no one can create instances of this Class.
 
Method Summary
static java.util.Collection deserialize(java.io.File file)
           
static void dump(java.util.Collection collection, java.io.OutputStream out)
          Dump Collection to a OutputStream, uses object toString() method to convert usage: org.jutil.TCollection.dump(System.out, coll);
static void dump(java.util.Map map, java.io.OutputStream out)
          Dump a Map to a String[], uses key and values toString() method to convert and uses an = as a sperator usage: org.jutil.TCollection.dump(System.out, map);
static void serialize(java.util.Collection coll, java.io.File file)
           
static java.lang.String[] toStringArray(java.util.Collection collection)
          Convert Collection to a String[], uses object toString() method to convert usage: org.jutil.TCollection.toStringArray(coll);
static java.lang.String[] toStringArray(java.util.Map map)
          Convert a Map to a String[], uses key and values toString() method to convert and uses an = as a sperator usage: org.jutil.TCollection.toStringArray(map);
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCollection

public TCollection()
Ensure that no one can create instances of this Class.

Method Detail

toStringArray

public static final java.lang.String[] toStringArray(java.util.Collection collection)
Convert Collection to a String[], uses object toString() method to convert usage: org.jutil.TCollection.toStringArray(coll);


dump

public static final void dump(java.util.Collection collection,
                              java.io.OutputStream out)
                       throws java.io.IOException
Dump Collection to a OutputStream, uses object toString() method to convert usage: org.jutil.TCollection.dump(System.out, coll);

Throws:
java.io.IOException

toStringArray

public static final java.lang.String[] toStringArray(java.util.Map map)
Convert a Map to a String[], uses key and values toString() method to convert and uses an = as a sperator usage: org.jutil.TCollection.toStringArray(map);


dump

public static final void dump(java.util.Map map,
                              java.io.OutputStream out)
                       throws java.io.IOException
Dump a Map to a String[], uses key and values toString() method to convert and uses an = as a sperator usage: org.jutil.TCollection.dump(System.out, map);

Throws:
java.io.IOException

serialize

public static final void serialize(java.util.Collection coll,
                                   java.io.File file)
                            throws java.io.IOException
Throws:
java.io.IOException

deserialize

public static final java.util.Collection deserialize(java.io.File file)
                                              throws java.io.IOException,
                                                     java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException