T - the element typepublic final class OpenHashSet<T>
extends java.lang.Object
Doesn't support nor checks for nulls.
| Constructor and Description |
|---|
OpenHashSet() |
OpenHashSet(int capacity)
Creates an OpenHashSet with the initial capacity and load factor of 0.75f.
|
OpenHashSet(int capacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T value) |
void |
clear(Consumer<? super T> clearAction) |
void |
forEach(Consumer<? super T> consumer) |
java.lang.Throwable |
forEachSuppress(Consumer<? super T> consumer)
Loops through all values in the set and collects any exceptions from the consumer
into a Throwable.
|
boolean |
isEmpty() |
boolean |
remove(T value) |
public OpenHashSet()
public OpenHashSet(int capacity)
capacity - the initial capacitypublic OpenHashSet(int capacity,
float loadFactor)
public boolean add(T value)
public boolean remove(T value)
public java.lang.Throwable forEachSuppress(Consumer<? super T> consumer)
consumer - the consumer to callpublic boolean isEmpty()