Modifier and Type | Method and Description |
---|---|
boolean |
add(int i)
Add i to the set
|
void |
addInterval(int n,
int m)
Adds all integers [n, m[, starting from n up to,
but not including m to the set
|
void |
clear()
Remove all members of the set.
|
boolean |
contains(int i)
Return if set contains i.
|
static SparseIntSet |
getInstance() |
boolean |
isEmpty()
Return if set is empty
|
IntIterator |
iterator()
Iterators over all int in set
|
boolean |
remove(int i)
Remove i from the set.
|
void |
removeInterval(int n,
int m)
Removes all integers [n, m[, starting from n up to,
but not including m from the set
|
int |
size()
Return number of elements in set
|
String |
toString() |
public static SparseIntSet getInstance()
public boolean add(int i)
IntSet
public void addInterval(int n, int m)
IntSet
addInterval
in interface IntSet
n
- lower bound to addm
- upper bound (exclusive) to addpublic void clear()
IntSet
public boolean contains(int i)
IntSet
public boolean isEmpty()
IntSet
public IntIterator iterator()
IntSet
public boolean remove(int i)
IntSet
public void removeInterval(int n, int m)
IntSet
removeInterval
in interface IntSet
n
- lower bound to removem
- upper bound (exclusive) to removepublic int size()
IntSet
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice