de.lmu.ifi.dbs.elki.database.ids
Interface DBIDs

All Superinterfaces:
Iterable<DBID>
All Known Subinterfaces:
ArrayDBIDs, ArrayModifiableDBIDs, ArrayStaticDBIDs, DBID, DBIDRange, HashSetDBIDs, HashSetModifiableDBIDs, ModifiableDBIDs, SetDBIDs, StaticDBIDs, TreeSetDBIDs, TreeSetModifiableDBIDs
All Known Implementing Classes:
EmptyDBIDs, GenericArrayModifiableDBIDs, GenericHashSetModifiableDBIDs, GenericTreeSetModifiableDBIDs, IntegerArrayStaticDBIDs, IntegerDBID, IntegerDBIDRange, KNNList.DBIDView, MaskedDBIDs, MergedDBIDs, UnmodifiableDBIDs

public interface DBIDs
extends Iterable<DBID>

Interface for a collection of database references (IDs).


Method Summary
 Collection<DBID> asCollection()
          Retrieve collection access to the IDs
 boolean contains(Object o)
          Test whether an ID is contained.
 boolean isEmpty()
          Test for an empty DBID collection.
 Iterator<DBID> iterator()
          Retrieve Iterator access to the IDs.
 int size()
          Retrieve the collection / data size.
 

Method Detail

asCollection

Collection<DBID> asCollection()
Retrieve collection access to the IDs

Returns:
a collection of IDs

iterator

Iterator<DBID> iterator()
Retrieve Iterator access to the IDs.

Specified by:
iterator in interface Iterable<DBID>
Returns:
an iterator for the IDs

size

int size()
Retrieve the collection / data size.

Returns:
collection size

contains

boolean contains(Object o)
Test whether an ID is contained. Signature compatible with Collection.

Parameters:
o - object to test
Returns:
true when contained

isEmpty

boolean isEmpty()
Test for an empty DBID collection.

Returns:
true when empty.

Release 0.4.0 (2011-09-20_1324)