public class OpenHashSet<E> extends AbstractSet<E>
Constructor and Description |
---|
OpenHashSet(int capacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E newVal) |
protected int |
calcHash(Object key) |
boolean |
contains(Object val) |
Iterator<E> |
iterator() |
protected E |
lpElement(long offset) |
boolean |
remove(Object val) |
int |
size() |
equals, hashCode, removeAll
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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>
protected int calcHash(Object key)
public boolean remove(Object val)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class AbstractCollection<E>
public boolean contains(Object val)
contains
in interface Collection<E>
contains
in interface Set<E>
contains
in class AbstractCollection<E>
protected final E lpElement(long offset)
Copyright © 2013-2015. All Rights Reserved.