Package com.google.common.collect
Class Collections2.FilteredCollection<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.Collections2.FilteredCollection<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
- Direct Known Subclasses:
Sets.FilteredSet
- Enclosing class:
- Collections2
static class Collections2.FilteredCollection<E> extends java.util.AbstractCollection<E>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Predicate<? super E>
predicate
(package private) java.util.Collection<E>
unfiltered
-
Constructor Summary
Constructors Constructor Description FilteredCollection(java.util.Collection<E> unfiltered, Predicate<? super E> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E element)
boolean
addAll(java.util.Collection<? extends E> collection)
void
clear()
boolean
contains(java.lang.Object element)
boolean
containsAll(java.util.Collection<?> collection)
(package private) Collections2.FilteredCollection<E>
createCombined(Predicate<? super E> newPredicate)
boolean
isEmpty()
java.util.Iterator<E>
iterator()
boolean
remove(java.lang.Object element)
boolean
removeAll(java.util.Collection<?> collection)
boolean
retainAll(java.util.Collection<?> collection)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] array)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
createCombined
Collections2.FilteredCollection<E> createCombined(Predicate<? super E> newPredicate)
-
add
public boolean add(E element)
-
addAll
public boolean addAll(java.util.Collection<? extends E> collection)
-
clear
public void clear()
-
contains
public boolean contains(@Nullable java.lang.Object element)
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<E> iterator()
-
remove
public boolean remove(java.lang.Object element)
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
-
size
public int size()
-
toArray
public java.lang.Object[] toArray()
-
-