|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.collect.SetLong
public final class SetLong
Utility class to hold a set of longs Similar to a Set, but efficient for longs
| Constructor Summary | |
|---|---|
SetLong()
Create a set of default size |
|
SetLong(int initialCapacity)
Create a set of given size |
|
| Method Summary | |
|---|---|
boolean |
add(long key)
Add a value to the set |
void |
clear()
clear all the entries |
boolean |
contains(long key)
Find a value from the set |
boolean |
isEmpty()
is the set empty |
IteratorLong |
iterator()
get an iterator to go through the set |
boolean |
remove(long key)
Remove a value from the set |
int |
size()
get the number of used entries |
long[] |
toArray()
convert to an array |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetLong()
public SetLong(int initialCapacity)
initialCapacity - | Method Detail |
|---|
public boolean add(long key)
key - the value to add
public boolean remove(long key)
key - the value to add
public boolean contains(long key)
key - the value to find
public int size()
public boolean isEmpty()
public void clear()
public IteratorLong iterator()
public long[] toArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||