gate.corpora
Class CorpusImpl.VerboseList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
gate.corpora.CorpusImpl.VerboseList
- All Implemented Interfaces:
- Serializable, Iterable, Collection, List
- Enclosing class:
- CorpusImpl
protected class CorpusImpl.VerboseList
- extends AbstractList
- implements Serializable
A proxy list that stores the actual data in an internal list and forwards
all operations to that one but it also fires the appropiate corpus events
when necessary.
It also does some type checking so only Documents are accepted as corpus
members.
- See Also:
- Serialized Form
| Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
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 Collection- Specified by:
size in interface List- Specified by:
size in class AbstractCollection
set
public Object set(int index,
Object element)
- Specified by:
set in interface List- Overrides:
set in class AbstractList
add
public void add(int index,
Object element)
- Specified by:
add in interface List- Overrides:
add in class AbstractList
remove
public Object remove(int index)
- Specified by:
remove in interface List- Overrides:
remove in class AbstractList