Top Constructors Methods
com.mchange.v1.util

public final Class SetUtils

extends Object
Class Inheritance
Imports
java.util.Iterator, .Set, .AbstractSet, .HashSet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
public static int
hashContentsDisregardingSort(Set<E> 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

public static Set<E>
public static Set<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SetUtilsback to summary
public SetUtils()

Method Detail

equivalentDisregardingSortback to summary
public static boolean equivalentDisregardingSort(Set<E> a, Set<E> b)
hashContentsDisregardingSortback to summary
public static int hashContentsDisregardingSort(Set<E> 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

oneElementUnmodifiableSetback to summary
public static Set<E> oneElementUnmodifiableSet(final Object elem)
setFromArrayback to summary
public static Set<E> setFromArray(Object[] array)