de.lmu.ifi.dbs.elki.database.ids
Class EmptyDBIDs
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<DBID>
de.lmu.ifi.dbs.elki.database.ids.EmptyDBIDs
- All Implemented Interfaces:
- ArrayDBIDs, ArrayStaticDBIDs, DBIDs, StaticDBIDs, Iterable<DBID>, Collection<DBID>, List<DBID>
class EmptyDBIDs
- extends AbstractList<DBID>
- implements ArrayStaticDBIDs
Empty DBID collection.
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, containsAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
EmptyDBIDs
EmptyDBIDs()
asCollection
public Collection<DBID> asCollection()
- Description copied from interface:
DBIDs
- Retrieve collection access to the IDs
- Specified by:
asCollection in interface DBIDs
- Returns:
- a collection of IDs
contains
public boolean contains(Object o)
- Description copied from interface:
DBIDs
- Test whether an ID is contained.
Signature compatible with
Collection.
- Specified by:
contains in interface DBIDs- Specified by:
contains in interface Collection<DBID>- Specified by:
contains in interface List<DBID>- Overrides:
contains in class AbstractCollection<DBID>
- Parameters:
o - object to test
- Returns:
- true when contained
iterator
public Iterator<DBID> iterator()
- Description copied from interface:
DBIDs
- Retrieve Iterator access to the IDs.
- Specified by:
iterator in interface DBIDs- Specified by:
iterator in interface Iterable<DBID>- Specified by:
iterator in interface Collection<DBID>- Specified by:
iterator in interface List<DBID>- Overrides:
iterator in class AbstractList<DBID>
- Returns:
- an iterator for the IDs
size
public int size()
- Description copied from interface:
DBIDs
- Retrieve the collection / data size.
- Specified by:
size in interface DBIDs- Specified by:
size in interface Collection<DBID>- Specified by:
size in interface List<DBID>- Specified by:
size in class AbstractCollection<DBID>
- Returns:
- collection size
isEmpty
public boolean isEmpty()
- Description copied from interface:
DBIDs
- Test for an empty DBID collection.
- Specified by:
isEmpty in interface DBIDs- Specified by:
isEmpty in interface Collection<DBID>- Specified by:
isEmpty in interface List<DBID>- Overrides:
isEmpty in class AbstractCollection<DBID>
- Returns:
- true when empty.
get
public DBID get(int i)
- Specified by:
get in interface List<DBID>- Specified by:
get in class AbstractList<DBID>