public final class HashedSetInt extends Object
Beware that this class is single-threaded and non-reentrant.
Constructor and Description |
---|
HashedSetInt() |
HashedSetInt(int initcap) |
HashedSetInt(int initcap,
float factor) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int key) |
void |
clear() |
boolean |
contains(int key) |
boolean |
isEmpty() |
IteratorInt |
iterator() |
IteratorInt |
recycledIterator() |
boolean |
remove(int key) |
int |
size() |
int[] |
toArray() |
int[] |
toArray(int[] arr) |
String |
toString() |
int |
trimToSize() |
public HashedSetInt()
public HashedSetInt(int initcap)
public HashedSetInt(int initcap, float factor)
public int size()
public boolean isEmpty()
public boolean contains(int key)
public IteratorInt iterator()
public int[] toArray()
public void clear()
public boolean add(int key)
public boolean remove(int key)
public int[] toArray(int[] arr)
public IteratorInt recycledIterator()
public int trimToSize()
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.