Class SetAdaptor<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractSet<T>
org.javimmutable.collections.common.SetAdaptor<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
Adaptor that implements an unmodifiable Set backed by a
ISet
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
boolean
boolean
containsAll
(Collection<?> objects) iterator()
static <T> SetAdaptor
<T> int
size()
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, isEmpty, remove, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
SetAdaptor
-
-
Method Details
-
of
-
contains
- Specified by:
contains
in interfaceCollection<T>
- Specified by:
contains
in interfaceSet<T>
- Overrides:
contains
in classAbstractCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceSet<T>
- Overrides:
containsAll
in classAbstractCollection<T>
-
iterator
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceSet<T>
- Specified by:
size
in classAbstractCollection<T>
-
areEqual
-