public abstract class ForwardingCollection<E,C extends Collection<E>> extends Object implements Collection<E>, Delegatable<C>
| 构造器和说明 |
|---|
ForwardingCollection() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
C |
getDelegate() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
void |
setDelegate(C delegate) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic void setDelegate(C delegate)
setDelegate 在接口中 Delegatable<C extends Collection<E>>public C getDelegate()
getDelegate 在接口中 Delegatable<C extends Collection<E>>public int size()
size 在接口中 Collection<E>public boolean isEmpty()
isEmpty 在接口中 Collection<E>public boolean contains(Object o)
contains 在接口中 Collection<E>public Object[] toArray()
toArray 在接口中 Collection<E>public <T> T[] toArray(T[] a)
toArray 在接口中 Collection<E>public boolean add(E e)
add 在接口中 Collection<E>public boolean remove(Object o)
remove 在接口中 Collection<E>public boolean containsAll(Collection<?> c)
containsAll 在接口中 Collection<E>public boolean addAll(Collection<? extends E> c)
addAll 在接口中 Collection<E>public boolean removeAll(Collection<?> c)
removeAll 在接口中 Collection<E>public boolean retainAll(Collection<?> c)
retainAll 在接口中 Collection<E>public void clear()
clear 在接口中 Collection<E>Copyright © 2021. All rights reserved.