
public class UnmodifiableIntegerArrayDBIDs extends Object implements IntegerArrayStaticDBIDs
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
UnmodifiableIntegerArrayDBIDs.UnmodifiableDBIDIter
Make an existing DBIDMIter unmodifiable.
|
| Modifier and Type | Field and Description |
|---|---|
private IntegerArrayDBIDs |
inner
The DBIDs we wrap.
|
| Constructor and Description |
|---|
UnmodifiableIntegerArrayDBIDs(IntegerArrayDBIDs inner)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignVar(int index,
DBIDVar var)
Assign a DBID variable the value of position
index. |
int |
binarySearch(DBIDRef key)
Search for the position of the given key, assuming that the data set is
sorted.
|
boolean |
contains(DBIDRef o)
Test whether an ID is contained.
|
DBID |
get(int i)
Deprecated.
|
boolean |
isEmpty()
Test for an empty DBID collection.
|
IntegerDBIDArrayIter |
iter()
Iterable
|
int |
size()
Size of the DBID "collection".
|
IntegerArrayDBIDs |
slice(int begin,
int end)
Slice a subarray (as view, not copy!)
|
String |
toString() |
private final IntegerArrayDBIDs inner
public UnmodifiableIntegerArrayDBIDs(IntegerArrayDBIDs inner)
inner - Inner DBID collection.public boolean contains(DBIDRef o)
DBIDspublic boolean isEmpty()
DBIDspublic IntegerDBIDArrayIter iter()
ArrayDBIDsiter in interface ArrayDBIDsiter in interface DBIDsiter in interface IntegerArrayDBIDsiter in interface IntegerArrayStaticDBIDsiter in interface IntegerDBIDspublic int size()
ArrayDBIDssize in interface ArrayDBIDssize in interface DBIDs@Deprecated public DBID get(int i)
ArrayDBIDsDBIDArrayIter via ArrayDBIDs.iter() instead, or
an DBIDVar via ArrayDBIDs.assignVar(int, de.lmu.ifi.dbs.elki.database.ids.DBIDVar)get in interface ArrayDBIDsi - Indexpublic void assignVar(int index,
DBIDVar var)
ArrayDBIDsindex.assignVar in interface ArrayDBIDsindex - Positionvar - Variable to assign the value to.public int binarySearch(DBIDRef key)
ArrayDBIDs-(1+insertion position) is returned, as
for Java Collections.binarySearch(java.util.List<? extends java.lang.Comparable<? super T>>, T)binarySearch in interface ArrayDBIDskey - Key to search forpublic IntegerArrayDBIDs slice(int begin, int end)
ArrayDBIDsslice in interface ArrayDBIDsslice in interface IntegerArrayDBIDsbegin - Begin (inclusive)end - End (exclusive)Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.