jpaul.Misc
Class Debug

java.lang.Object
  extended by jpaul.Misc.Debug

public final class Debug
extends java.lang.Object

Debug contains some simple debugging methods.

Version:
$Id: Debug.java,v 1.8 2006/03/14 02:29:31 salcianu Exp $
Author:
Alexandru Salcianu - salcianu@alum.mit.edu

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
 

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