public class HashSetI
extends java.lang.Object
| Constructor and Description |
|---|
HashSetI()
Creates a new HashSet for integer values.
|
HashSetI(HashSetI original) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value)
Adds the specified value to this HashSet.
|
boolean |
contains(int value)
Checks if this HashSet contains the specified value.
|
IteratorI |
iterator()
Returns an iterator over this HashSet.
|
int[] |
toArray()
Converts the contents of this HashSet to an integer array.
|
public HashSetI()
public HashSetI(HashSetI original)
public void add(int value)
value - value to be added to the HashSetpublic boolean contains(int value)
value - integer value to addpublic IteratorI iterator()
public int[] toArray()