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 TypeMethodDescriptionboolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, size, 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
-
ImprovedAbstractSet
ImprovedAbstractSet()
-
-
Method Details
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceSet<E>
- Overrides:
removeAll
in classAbstractSet<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceSet<E>
- Overrides:
retainAll
in classAbstractCollection<E>
-