com.mchange.v1.util
Class ListUtils

java.lang.Object
  extended by com.mchange.v1.util.ListUtils

public final class ListUtils
extends Object


Constructor Summary
ListUtils()
           
 
Method Summary
static boolean equivalent(List a, List b)
           
static int hashContents(List l)
          finds a hash value which takes into account the value of all elements, such that two sets for which equivalent(a, b) returns true will hashContents() to the same value
static List oneElementUnmodifiableList(Object elem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUtils

public ListUtils()
Method Detail

oneElementUnmodifiableList

public static List oneElementUnmodifiableList(Object elem)

equivalent

public static boolean equivalent(List a,
                                 List b)

hashContents

public static int hashContents(List l)
finds a hash value which takes into account the value of all elements, such that two sets for which equivalent(a, b) returns true will hashContents() to the same value