IntervalSet
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public IntSet | |
| public IntSet | Returns: A newIntSet instance containing the intersection of the
current set and a. The value null may be returned in
place of an empty result set.The set to intersect with the current set. A a)null
argument is treated as though it were an empty set.Return a new |
| public IntSet | Returns: A newIntSet instance containing the elements present in
elements but not present in the current set. The value
null may be returned in place of an empty result set.The set to compare with the current set. A elements)null
argument is treated as though it were an empty set.Return a new |
| public boolean | Returns: true if the set contains el; otherwise false.The element to check for. el)Returns |
| public boolean | |
| public int | Returns: the single value contained in the set, ifsize is 1;
otherwise, returns Token#INVALID_TYPE.Returns the single value contained in the set, if |
| public boolean | Returns: true if the current set contains no elements; otherwise,
false.Returns |
| public IntSet | Returns: A newIntSet instance containing the union of the current
set and a. The value null may be returned in place of an
empty result set.The set to union with the current set. A a)null argument
is treated as though it were an empty set.Return a new |
| public void | |
| public int | Returns: the total number of elements represented by the current set, regardless of the manner in which the elements are stored.Return the total number of elements represented by the current set. |
| public IntSet | Returns: A newIntSet instance containing the elements present in
elements but not present in the current set. The value
null may be returned in place of an empty result set.The set to compare with the current set. A a)null
argument is treated as though it were an empty set.Return a new |
| public List | Returns: A list containing all element present in the current set, sorted in ascending numerical order.Return a list containing the elements represented by the current set. |
| public String |
| add | back to summary |
|---|---|
| public void add(int el) Adds the specified value to the current set.
| |
| addAll | back to summary |
|---|---|
| public IntSet addAll(IntSet set) Modify the current
| |
| and | back to summary |
|---|---|
| public IntSet and(IntSet a) Return a new | |
| complement | back to summary |
|---|---|
| public IntSet complement(IntSet elements) Return a new
| |
| contains | back to summary |
|---|---|
| public boolean contains(int el) Returns
| |
| equals | back to summary |
|---|---|
public boolean equals(Object obj)
| |
| getSingleElement | back to summary |
|---|---|
| public int getSingleElement() Returns the single value contained in the set, if
| |
| isNil | back to summary |
|---|---|
| public boolean isNil() Returns
| |
| or | back to summary |
|---|---|
| public IntSet or(IntSet a) Return a new
This method is similar to | |
| remove | back to summary |
|---|---|
| public void remove(int el) Removes the specified value from the current set. If the current set does not contain the element, no changes are made.
| |
| size | back to summary |
|---|---|
| public int size() Return the total number of elements represented by the current set.
| |
| subtract | back to summary |
|---|---|
| public IntSet subtract(IntSet a) Return a new
| |
| toList | back to summary |
|---|---|
| public List Return a list containing the elements represented by the current set. The list is returned in ascending numerical order. | |
| toString | back to summary |
|---|---|
public String toString()
| |