|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jutil.TCollection
public final class TCollection
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 |
|---|
public TCollection()
| Method Detail |
|---|
public static final java.lang.String[] toStringArray(java.util.Collection collection)
Collection to a String[],
uses object toString() method to convert
usage: org.jutil.TCollection.toStringArray(coll);
public static final void dump(java.util.Collection collection,
java.io.OutputStream out)
throws java.io.IOException
Collection to a OutputStream,
uses object toString() method to convert
usage: org.jutil.TCollection.dump(System.out, coll);
java.io.IOExceptionpublic static final java.lang.String[] toStringArray(java.util.Map map)
Map to a String[],
uses key and values toString() method to convert
and uses an = as a sperator
usage: org.jutil.TCollection.toStringArray(map);
public static final void dump(java.util.Map map,
java.io.OutputStream out)
throws java.io.IOException
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);
java.io.IOException
public static final void serialize(java.util.Collection coll,
java.io.File file)
throws java.io.IOException
java.io.IOException
public static final java.util.Collection deserialize(java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||