public interface ArrayModifiableDBIDs extends ModifiableDBIDs, ArrayDBIDs
Modifier and Type | Method and Description |
---|---|
DBID |
remove(int i)
Remove the i'th entry (starting at 0)
|
DBID |
set(int i,
DBID newval)
Replace the i'th entry (starting at 0)
|
void |
sort()
Sort the DBID set.
|
void |
sort(Comparator<? super DBID> comparator)
Sort the DBID set.
|
void |
swap(int a,
int b)
Swap DBIDs add positions a and b.
|
add, addDBIDs, clear, iter, remove, removeDBIDs
binarySearch, get, iter, size
void sort()
void sort(Comparator<? super DBID> comparator)
comparator
- Comparator to useDBID remove(int i)
i
- IndexDBID set(int i, DBID newval)
i
- Indexnewval
- New valuevoid swap(int a, int b)
a
- First positionb
- Second position