public class UnmodifiableDBIDs extends Object implements StaticDBIDs
Modifier and Type | Class and Description |
---|---|
(package private) class |
UnmodifiableDBIDs.UnmodifiableDBIDIter
Make an existing DBIDMIter unmodifiable.
|
Constructor and Description |
---|
UnmodifiableDBIDs(DBIDs 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.
|
DBIDIter |
iter()
Get a DBID iterator (a more efficient API).
|
int |
size()
Retrieve the collection / data size.
|
String |
toString() |
private final DBIDs inner
public UnmodifiableDBIDs(DBIDs inner)
inner
- Inner DBID collection.public boolean contains(DBIDRef o)
DBIDs
public boolean isEmpty()
DBIDs
public DBIDIter iter()
DBIDs
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
public int size()
DBIDs
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.