public class FilteredCollection<T,S extends T>
extends java.lang.Object
implements java.util.Collection<S>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FilteredCollection.FilteringIterator<T,S extends T> |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<T> |
collection |
protected CollectionFilter<S> |
filter |
| Constructor and Description |
|---|
FilteredCollection(java.util.Collection<T> collection,
CollectionFilter<S> filter) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(java.lang.Object o) |
boolean |
add(S o) |
boolean |
addAll(java.util.Collection<? extends S> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
isEmpty() |
java.util.Iterator<S> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected final java.util.Collection<T> collection
protected final CollectionFilter<S extends T> filter
public FilteredCollection(java.util.Collection<T> collection, CollectionFilter<S> filter)
public boolean addAll(java.util.Collection<? extends S> c)
protected boolean accept(java.lang.Object o)
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean isEmpty()
public java.util.Iterator<S> iterator()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public java.lang.Object[] toArray()
Copyright © 2013. All rights reserved