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

All Superinterfaces:
ArrayDBIDs, ArrayStaticDBIDs, Collection<DBID>, DBIDs, Iterable<DBID>, List<DBID>, StaticDBIDs
All Known Implementing Classes:
IntegerDBIDRange

public interface DBIDRange
extends ArrayStaticDBIDs

Static DBID range.


Method Summary
 int getOffset(DBID dbid)
          Get offset in the array for a particular DBID.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from interface de.lmu.ifi.dbs.elki.database.ids.DBIDs
asCollection, contains, isEmpty, iterator, size
 

Method Detail

getOffset

int getOffset(DBID dbid)
Get offset in the array for a particular DBID. Should satisfy range.get(getOffset(id)) == id and range.getOffset(range.get(idx)) == idx.

Parameters:
dbid - ID to compute index for
Returns:
index

Release 0.4.0 (2011-09-20_1324)