
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)
DBIDspublic boolean isEmpty()
DBIDspublic IntegerDBIDIter iter()
DBIDs
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
iter in interface DBIDsiter in interface IntegerDBIDspublic int size()
DBIDs