Package com.google.common.collect
Class Sets.ImprovedAbstractSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.google.common.collect.Sets.ImprovedAbstractSet<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
- Direct Known Subclasses:
LinkedHashMultimap.ValueSet,Maps.EntrySet,Maps.KeySet,Multisets.ElementSet,Multisets.EntrySet,StandardTable.Column.EntrySet,StandardTable.TableSet
- Enclosing class:
Sets
AbstractSet substitute without the potentially-quadratic removeAll
implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) Methods inherited from class java.util.AbstractSet
equals, hashCodeMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
ImprovedAbstractSet
ImprovedAbstractSet()
-
-
Method Details
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceSet<E>- Overrides:
removeAllin classAbstractSet<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceSet<E>- Overrides:
retainAllin classAbstractCollection<E>
-