T - The element type.public class ProxiedCollection<T> extends Object implements Collection<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProxiedCollection.IProxiedCollectionOperations<T>
Mutator operations for a proxied collection.
|
| Modifier and Type | Field and Description |
|---|---|
protected Collection<T> |
delegate |
| Constructor and Description |
|---|
ProxiedCollection(Collection<T> delegate,
ProxiedCollection.IProxiedCollectionOperations<T> operations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object element) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamprotected final Collection<T> delegate
public ProxiedCollection(Collection<T> delegate, ProxiedCollection.IProxiedCollectionOperations<T> operations)
public int size()
size in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>public boolean contains(Object o)
contains in interface Collection<T>public Object[] toArray()
toArray in interface Collection<T>public <S> S[] toArray(S[] a)
toArray in interface Collection<T>public final boolean add(T element)
add in interface Collection<T>public final boolean remove(Object element)
remove in interface Collection<T>public final boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>public final boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>public final boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>public final boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>public final void clear()
clear in interface Collection<T>Copyright © 2023 Fujion Framework. All rights reserved.