| Constructor and Description |
|---|
IntSet()
Construct a new instance with an initial capacity of 64 and a load factor of
0.5. |
IntSet(float loadFactor)
Construct a new instance with the given load factor and an initial capacity of 64.
|
IntSet(int initialCapacity)
Construct a new instance with the given initial capacity and a load factor of
0.5. |
IntSet(int initialCapacity,
float loadFactor)
Construct a new instance with the given initial capacity and load factor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T key)
Add a value into the set, if it's not already in there.
|
void |
clear() |
IntSet<T> |
clone()
Clone this set.
|
boolean |
contains(T key)
Check to see if this set contains a value.
|
String |
toString()
Get a string summary representation of this map.
|
public IntSet(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacityloadFactor - the load factorpublic IntSet(float loadFactor)
loadFactor - the load factorpublic IntSet(int initialCapacity)
0.5.initialCapacity - the initial capacitypublic IntSet()
0.5.public boolean contains(T key)
key - the keytrue if the object is present in the setpublic boolean add(T key)
key - the keytrue if the object was added, or false if it was already in the setpublic void clear()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.