edu.stanford.nlp.dbm
Class DBIndexedSet
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--edu.stanford.nlp.dbm.DBIndexedSet
- All Implemented Interfaces:
- Collection, IndexedSet, List, Set
- public class DBIndexedSet
- extends AbstractList
- implements IndexedSet
Implementation of IndexedSet which uses a List and a SimpleDatabase: the List to store index-object pairs, and the SimpleDatabase to store object-index pairs
Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from interface java.util.List |
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Methods inherited from interface java.util.Set |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
DBIndexedSet
public DBIndexedSet(List ind_obj,
SimpleDatabase obj_ind)
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List
- Overrides:
indexOf
in class AbstractList
get
public Object get(int index)
- Specified by:
get
in interface List
- Specified by:
get
in class AbstractList
size
public int size()
- Specified by:
size
in interface List
- Specified by:
size
in class AbstractCollection
add
public boolean add(Object o)
- Specified by:
add
in interface List
- Overrides:
add
in class AbstractList
Stanford NLP Group