public class OpenHashSet<E> extends AbstractSet<E>
| Constructor and Description |
|---|
OpenHashSet(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E newVal) |
boolean |
contains(Object needle) |
Iterator<E> |
iterator() |
boolean |
remove(Object val) |
int |
size() |
equals, hashCode, removeAlladdAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public boolean add(E newVal)
add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>public boolean remove(Object val)
remove in interface Collection<E>remove in interface Set<E>remove in class AbstractCollection<E>public boolean contains(Object needle)
contains in interface Collection<E>contains in interface Set<E>contains in class AbstractCollection<E>Copyright © 2013–2023. All rights reserved.