net.sf.saxon.sort
public class IntArraySet extends Object implements Serializable, IntSet
Field Summary | |
---|---|
static int[] | EMPTY_INT_ARRAY |
Constructor Summary | |
---|---|
IntArraySet()
Create an empty set | |
IntArraySet(IntHashSet input)
Create a set containing integers from the specified IntHashSet | |
IntArraySet(IntArraySet input)
Create one IntArraySet as a copy of another |
Method Summary | |
---|---|
boolean | add(int value)
Add an integer to the set |
void | clear() |
boolean | contains(int value) |
boolean | containsAll(IntSet other)
Test if this set is a superset of another set |
boolean | equals(Object other)
Test whether this set has exactly the same members as another set |
int | getFirst()
Get the first value in the set. |
int[] | getValues()
Get the set of integer values as an array |
int | hashCode()
Construct a hash key that supports the equals() test |
boolean | isEmpty() |
IntIterator | iterator()
Get an iterator over the values |
static IntArraySet | make(int[] in, int size)
Factory method to construct a set from an array of integers |
boolean | remove(int value) |
int | size() |
String | toString() |
IntArraySet | union(IntArraySet other)
Form a new set that is the union of this set with another set. |
Parameters: input the set to be copied
Parameters: input the set to be copied
Parameters: value the integer to be added
Returns: true if the integer was added, false if it was already present
Returns: the first value in the set, in sorted order
Throws: ArrayIndexOutOfBoundsException if the set is empty
Returns: a sorted array of integers
Returns: an iterator over the values, which will be delivered in sorted order
Parameters: in the array of integers, which must be in ascending order size the number of elements in the array that are significant
Returns: the constructed set
Parameters: other the other set
Returns: the union of the two sets