public class WeakHashSet<E> extends AbstractSet<E> implements Set<E>
| 构造器和说明 |
|---|
WeakHashSet() |
WeakHashSet(Collection<? extends E> c) |
WeakHashSet(int initialCapacity) |
WeakHashSet(int initialCapacity,
float loadFactor) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E o) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
int |
size() |
equals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringaddAll, containsAll, equals, hashCode, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic WeakHashSet()
public WeakHashSet(Collection<? extends E> c)
public WeakHashSet(int initialCapacity,
float loadFactor)
public WeakHashSet(int initialCapacity)
public int size()
size 在接口中 Collection<E>size 在接口中 Set<E>size 在类中 AbstractCollection<E>public boolean isEmpty()
isEmpty 在接口中 Collection<E>isEmpty 在接口中 Set<E>isEmpty 在类中 AbstractCollection<E>public boolean contains(Object o)
contains 在接口中 Collection<E>contains 在接口中 Set<E>contains 在类中 AbstractCollection<E>public boolean add(E o)
add 在接口中 Collection<E>add 在接口中 Set<E>add 在类中 AbstractCollection<E>public boolean remove(Object o)
remove 在接口中 Collection<E>remove 在接口中 Set<E>remove 在类中 AbstractCollection<E>public void clear()
clear 在接口中 Collection<E>clear 在接口中 Set<E>clear 在类中 AbstractCollection<E>Copyright © 2021–2022. All rights reserved.