public class UnmodifiableIntegerDBIDs extends java.lang.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.
|
java.lang.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
Example:
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
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.