public class CollectionDecorator<T,U extends Collection<T>> extends Object implements Collection<T>
| Constructor and Description |
|---|
CollectionDecorator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T item) |
boolean |
addAll(Collection<? extends T> items) |
void |
clear() |
boolean |
contains(Object item) |
boolean |
containsAll(Collection<?> items) |
U |
getDecoratee() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object item) |
boolean |
removeAll(Collection<?> items) |
boolean |
retainAll(Collection<?> items) |
int |
size() |
Object[] |
toArray() |
<V> V[] |
toArray(V[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodeprotected U extends Collection<T> decoratee
public U getDecoratee()
public boolean add(T item)
add in interface Collection<T>public boolean addAll(Collection<? extends T> items)
addAll in interface Collection<T>public void clear()
clear in interface Collection<T>public boolean contains(Object item)
contains in interface Collection<T>public boolean containsAll(Collection<?> items)
containsAll in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>public boolean remove(Object item)
remove in interface Collection<T>public boolean removeAll(Collection<?> items)
removeAll in interface Collection<T>public boolean retainAll(Collection<?> items)
retainAll in interface Collection<T>public int size()
size in interface Collection<T>public Object[] toArray()
toArray in interface Collection<T>public <V> V[] toArray(V[] a)
toArray in interface Collection<T>Copyright © 2014. All rights reserved.