com.mchange.v1.util
Class SetUtils

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

public final class SetUtils
extends Object


Constructor Summary
SetUtils()
           
 
Method Summary
static boolean equivalentDisregardingSort(Set a, Set b)
           
static int hashContentsDisregardingSort(Set s)
          finds a hash value which takes into account the value of all elements, such that two sets for which equivalentDisregardingSort(a, b) returns true will hashContentsDisregardingSort() to the same value
static Set oneElementUnmodifiableSet(Object elem)
           
static Set setFromArray(Object[] array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetUtils

public SetUtils()
Method Detail

oneElementUnmodifiableSet

public static Set oneElementUnmodifiableSet(Object elem)

setFromArray

public static Set setFromArray(Object[] array)

equivalentDisregardingSort

public static boolean equivalentDisregardingSort(Set a,
                                                 Set b)

hashContentsDisregardingSort

public static int hashContentsDisregardingSort(Set s)
finds a hash value which takes into account the value of all elements, such that two sets for which equivalentDisregardingSort(a, b) returns true will hashContentsDisregardingSort() to the same value