jpaul.Misc
Class Debug

java.lang.Object
  extended by jpaul.Misc.Debug
All Implemented Interfaces:
java.io.Serializable

public abstract class Debug
extends java.lang.Object
implements java.io.Serializable

Debug contains some simple debugging methods.

Version:
$Id: Debug.java,v 1.2 2005/08/12 21:28:40 salcianu Exp $
Author:
Alexandru Salcianu - salcianu@alum.mit.edu
See Also:
Serialized Form

Constructor Summary
Debug()
           
 
Method Summary
static
<T> java.util.List<T>
sortedCollection(java.util.Collection<T> coll)
          Returns a list containing all the objects from a collection, in increasing lexicographic order of their string representations.
static
<T> java.lang.String
stringImg(java.util.Collection<T> coll)
          Returns a string representation of all elements from a collection, in increasing lexicographic order of their string representations.
static
<T> java.lang.String
stringImg(T[] v)
          Returns a string representation of all elements from an array, in increasing lexicographic order of their string representations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

sortedCollection

public static <T> java.util.List<T> sortedCollection(java.util.Collection<T> coll)
Returns a list containing all the objects from a collection, in increasing lexicographic order of their string representations.


stringImg

public static <T> java.lang.String stringImg(java.util.Collection<T> coll)
Returns a string representation of all elements from a collection, in increasing lexicographic order of their string representations.


stringImg

public static <T> java.lang.String stringImg(T[] v)
Returns a string representation of all elements from an array, in increasing lexicographic order of their string representations.



Copyright 2005 Alexandru Salcianu - salcianu@alum.mit.edu