Top Description Methods
org.droidparts.dexmaker.dx.util

public Interface IntSet

Known Direct Implementers
org.droidparts.dexmaker.dx.util.ListIntSet, org.droidparts.dexmaker.dx.util.BitIntSet

A set of integers

Method Summary

Modifier and TypeMethod and Description
public void
add(int
int to add
value
)

Adds an int to a set

public int

Returns:

> = 0; count of unique elements
elements
()

Returns the count of unique elements in this set.

public boolean

Returns:

true if in set
has
(int
int to check
value
)

Checks to see if a value is in the set

public IntIterator

Returns:

non-null; a set iterator
iterator
()

Iterates the set

public void
merge(IntSet
non-null; other set to merge with.
other
)

Merges other into this set, so this set becomes the union of the two.

public void
remove(int
int to remove
value
)

Removes an int from a set.

Method Detail

addback to summary
public void add(int value)

Adds an int to a set

Parameters
value:int

int to add

elementsback to summary
public int elements()

Returns the count of unique elements in this set.

Returns:int

> = 0; count of unique elements

hasback to summary
public boolean has(int value)

Checks to see if a value is in the set

Parameters
value:int

int to check

Returns:boolean

true if in set

iteratorback to summary
public IntIterator iterator()

Iterates the set

Returns:IntIterator

non-null; a set iterator

mergeback to summary
public void merge(IntSet other)

Merges other into this set, so this set becomes the union of the two.

Parameters
other:IntSet

non-null; other set to merge with.

removeback to summary
public void remove(int value)

Removes an int from a set.

Parameters
value:int

int to remove