FileDocCategorySizeDatePackage
IntSet.javaAPI DocAndroid 5.1 API1590Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.util

IntSet

public interface IntSet
A set of integers

Fields Summary
Constructors Summary
Methods Summary
public voidadd(int value)
Adds an int to a set

param
value int to add

public intelements()
Returns the count of unique elements in this set.

return
{@code > = 0;} count of unique elements

public booleanhas(int value)
Checks to see if a value is in the set

param
value int to check
return
true if in set

public IntIteratoriterator()
Iterates the set

return
{@code non-null;} a set iterator

public voidmerge(com.android.dexgen.util.IntSet other)
Merges {@code other} into this set, so this set becomes the union of the two.

param
other {@code non-null;} other set to merge with.

public voidremove(int value)
Removes an int from a set.

param
value int to remove