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 IntervalIntSet |
getInstance() |
static IntervalIntSet |
getInstance(int n,
int m) |
static IntervalIntSet |
getInstance(IntSet set) |
float |
getStorageEfficiency() |
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 IntervalIntSet getInstance()
public static IntervalIntSet getInstance(int n, int m)
public static IntervalIntSet getInstance(IntSet set)
public boolean contains(int i)
IntSet
public boolean add(int i)
IntSet
public boolean remove(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 removeInterval(int n, int m)
IntSet
removeInterval
in interface IntSet
n
- lower bound to removem
- upper bound (exclusive) to removepublic int size()
IntSet
public boolean isEmpty()
IntSet
public IntIterator iterator()
IntSet
public void clear()
IntSet
public float getStorageEfficiency()
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