Package org.organicdesign.fp.collections
Class AbstractUnmodSet<T>
- java.lang.Object
-
- org.organicdesign.fp.collections.AbstractUnmodIterable<T>
-
- org.organicdesign.fp.collections.AbstractUnmodSet<T>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
,Sized
,UnmodCollection<T>
,UnmodIterable<T>
,UnmodSet<T>
,Transformable<T>
- Direct Known Subclasses:
PersistentHashSet
,PersistentHashSet.MutHashSet
,PersistentTreeSet
public abstract class AbstractUnmodSet<T> extends AbstractUnmodIterable<T> implements UnmodSet<T>
Implements equals and hashCode() methods compatible with java.util.Set (which ignores order) to make defining unmod sets easier, especially for implementing Map.keySet() and such.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.organicdesign.fp.collections.UnmodIterable
UnmodIterable.UnIterable
-
-
Constructor Summary
Constructors Constructor Description AbstractUnmodSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
-
Methods inherited from class org.organicdesign.fp.collections.AbstractUnmodIterable
hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.Set
hashCode, size, spliterator
-
Methods inherited from interface org.organicdesign.fp.xform.Transformable
any, toImList, toImMap, toImRrbt, toImSet, toImSortedMap, toImSortedSet, toMutList, toMutMap, toMutRrbt, toMutSet, toMutSortedMap, toMutSortedSet
-
-