org.axiondb.engine.rowcollection
public class IntSet extends Object implements IntCollection
Constructor Summary | |
---|---|
IntSet()
Constructs a new, empty set; the backing HashMap instance has default
initial capacity (16) and load factor (0.75). | |
IntSet(int initialCapacity)
Constructs a new, empty set; the backing HashMap instance has the
specified initial capacity and default load factor, which is 0.75.
|
Method Summary | |
---|---|
boolean | add(int id)
Adds the specified element to this set if it is not already present.
|
boolean | addAll(IntCollection c) |
void | clear()
Removes all of the elements from this set. |
boolean | contains(int id)
Returns true if this set contains the specified element.
|
boolean | containsAll(IntCollection c) |
boolean | isEmpty()
Returns true if this set contains no elements.
|
IntIterator | iterator() |
IntListIterator | listIterator() |
boolean | remove(int id)
Removes the specified element from this set if it is present.
|
boolean | removeAll(IntCollection c) |
boolean | removeElement(int element) |
boolean | retainAll(IntCollection c) |
int | size()
Returns the number of elements in this set (its cardinality).
|
int[] | toArray() |
int[] | toArray(int[] a) |
Parameters: initialCapacity the initial capacity of the hash table.
Throws: IllegalArgumentException if the initial capacity is less than zero.
Parameters: id element to be added to this set.
Returns: true if the set did not already contain the specified element.
Parameters: id element whose presence in this set is to be tested.
Returns: true if this set contains the specified element.
Returns: true if this set contains no elements.
Parameters: id object to be removed from this set, if present.
Returns: true if the set contained the specified element.
Returns: the number of elements in this set (its cardinality).