public interface DBIDs
Modifier and Type | Method and Description |
---|---|
boolean |
contains(DBIDRef o)
Test whether an ID is contained.
|
default void |
forEach(java.util.function.Consumer<? super DBIDRef> action)
Execute a function for each ID.
|
default 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.
|
DBIDIter iter()
Example:
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
int size()
boolean contains(DBIDRef o)
o
- object to testdefault boolean isEmpty()
default void forEach(java.util.function.Consumer<? super DBIDRef> action)
action
- Action to executeCopyright © 2019 ELKI Development Team. License information.