Class UniversalSet<T>

java.lang.Object
io.deephaven.util.UniversalSet<T>
All Implemented Interfaces:
Serializable, Iterable<T>, Collection<T>, Set<T>

public class UniversalSet<T> extends Object implements Set<T>, Serializable
A universal Set that's acts as if all values are contained therein. The only supported operations are: Set.isEmpty() Set.contains(Object) Set.containsAll(Collection) Any other operations return an UnsupportedOperationException. Note that you can't use equals on a Set and a UniversalSet, because the Set's implementation will call unsupported methods from UniversalSet. If one of your Sets may be a universal set, use safeEquals(Set, Set) instead.
See Also: