Class AbstractImmutableSet<E>
java.lang.Object
ru.progrm_jarvis.javacommons.collection.AbstractImmutableSet<E>
- Type Parameters:
E- the type of elements maintained by this set
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
Abstract base for custom immutable
Set implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(@NonNull Collection<? extends E> collection) voidclear()booleancontainsAll(@NonNull Collection<?> collection) booleanbooleanremoveAll(@NonNull Collection<?> collection) booleanbooleanretainAll(@NonNull Collection<?> collection) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream
-
Constructor Details
-
AbstractImmutableSet
public AbstractImmutableSet()
-
-
Method Details
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
add
-
remove
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
removeIf
- Specified by:
removeIfin interfaceCollection<E>
-