| 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 ArrayIntSet |
getInstance() |
static ArrayIntSet |
getInstance(int capacity) |
static ArrayIntSet |
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 ArrayIntSet getInstance()
public static ArrayIntSet getInstance(int capacity)
public static ArrayIntSet getInstance(IntSet set)
public boolean contains(int i)
IntSetpublic boolean add(int i)
IntSetpublic boolean remove(int i)
IntSetpublic void addInterval(int n,
int m)
addInterval in interface IntSetn - lower bound to addm - upper bound (exclusive) to addpublic void removeInterval(int n,
int m)
removeInterval in interface IntSetn - lower bound to removem - upper bound (exclusive) to removepublic int size()
IntSetpublic boolean isEmpty()
IntSetpublic IntIterator iterator()
IntSetpublic void clear()
IntSetpublic 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 2021 SAP SE Complete Copyright Notice