com.mchange.v1.util
Class SetUtils
java.lang.Object
com.mchange.v1.util.SetUtils
public final class SetUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetUtils
public SetUtils()
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