|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.util.BitIntSet
public class BitIntSet
A set of integers, represented by a bit set
| Constructor Summary | |
|---|---|
BitIntSet(int max)
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
add(int value)
Adds an int to a set |
int |
elements()
Returns the count of unique elements in this set. |
boolean |
has(int value)
Checks to see if a value is in the set |
IntIterator |
iterator()
Iterates the set |
void |
merge(IntSet other)
Merges other into this set, so this set becomes the
union of the two. |
void |
remove(int value)
Removes an int from a set. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BitIntSet(int max)
max - the maximum value of ints in this set.| Method Detail |
|---|
public void add(int value)
IntSet
add in interface IntSetvalue - int to addpublic void remove(int value)
IntSet
remove in interface IntSetvalue - int to removepublic boolean has(int value)
IntSet
has in interface IntSetvalue - int to check
public void merge(IntSet other)
IntSetother into this set, so this set becomes the
union of the two.
merge in interface IntSetother - non-null; other set to merge with.public int elements()
IntSet
elements in interface IntSet> = 0; count of unique elementspublic IntIterator iterator()
IntSet
iterator in interface IntSetnon-null; a set iteratorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||