E - The type of elements in the collectionpublic class BlackHoleCollection<E> extends Object implements Collection<E>
| 构造器和说明 |
|---|
BlackHoleCollection() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
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 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 © 2022 Fraunhofer SIT. All rights reserved.