public abstract class IntSet
extends java.lang.Object
| Constructor and Description |
|---|
IntSet() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
add(int value)
Add an integer to the set
|
abstract void |
clear()
Clear the contents of the IntSet (making it an empty set)
|
abstract boolean |
contains(int value)
Determine whether a particular integer is present in the set
|
boolean |
containsAll(IntSet other)
Test if this set is a superset of another set
|
abstract IntSet |
copy()
Create a copy of this IntSet that leaves the original unchanged.
|
IntSet |
except(IntSet other)
Form a new set that is the difference of this set and another set.
|
IntSet |
intersect(IntSet other)
Form a new set that is the intersection of two IntSets.
|
abstract boolean |
isEmpty()
Determine if the set is empty
|
boolean |
isMutable()
Ask whether the set permits in-situ modifications using add() and remove()
|
abstract IntIterator |
iterator()
Get an iterator over the values
|
abstract IntSet |
mutableCopy()
Create a copy of this IntSet that contains the same set of integers.
|
abstract boolean |
remove(int value)
Remove an integer from the set
|
abstract int |
size()
Get the number of integers in the set
|
IntSet |
union(IntSet other)
Form a new set that is the union of two IntSets.
|
public abstract IntSet copy()
public abstract IntSet mutableCopy()
public boolean isMutable()
public abstract void clear()
public abstract int size()
public abstract boolean isEmpty()
public abstract boolean contains(int value)
value - the integer under testpublic abstract boolean remove(int value)
value - the integer to be removedpublic abstract boolean add(int value)
value - the integer to be addedpublic abstract IntIterator iterator()
public boolean containsAll(IntSet other)
other - the other setpublic IntSet union(IntSet other)
other - the second setpublic IntSet intersect(IntSet other)
other - the second setCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.