public class UnmodifiableIntegerDBIDs extends Object implements StaticDBIDs, IntegerDBIDs
Modifier and Type | Class and Description |
---|---|
(package private) class |
UnmodifiableIntegerDBIDs.UnmodifiableDBIDIter
Make an existing DBIDMIter unmodifiable.
|
Modifier and Type | Field and Description |
---|---|
private IntegerDBIDs |
inner
The DBIDs we wrap.
|
Constructor and Description |
---|
UnmodifiableIntegerDBIDs(IntegerDBIDs inner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(DBIDRef o)
Test whether an ID is contained.
|
boolean |
isEmpty()
Test for an empty DBID collection.
|
IntegerDBIDIter |
iter()
Get a DBID iterator (a more efficient API).
|
int |
size()
Retrieve the collection / data size.
|
String |
toString() |
private final IntegerDBIDs inner
public UnmodifiableIntegerDBIDs(IntegerDBIDs inner)
inner
- Inner DBID collection.public boolean contains(DBIDRef o)
DBIDs
public boolean isEmpty()
DBIDs
public IntegerDBIDIter iter()
DBIDs
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
iter
in interface DBIDs
iter
in interface IntegerDBIDs
public int size()
DBIDs
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.