|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.schwa.dr.Store<T>
public class Store<T extends Ann>
Implementation of docrep stores; ordered collections of annotation instances. This class wraps
an ArrayList while providing some additional methods, such as create(java.lang.Class, and
adding some additional docrep semantics to methods like add(T) and
clear().
| Field Summary | |
|---|---|
protected List<T> |
items
|
| Constructor Summary | |
|---|---|
Store()
|
|
| Method Summary | ||
|---|---|---|
void |
add(int index,
T o)
This method is unsupported but required by the List interface. |
|
boolean |
add(T obj)
Adds a new Ann instance to the store, setting the drIndex attribute in the process. |
|
boolean |
addAll(Collection<? extends T> c)
|
|
boolean |
addAll(int index,
Collection<? extends T> c)
|
|
void |
clear()
Removes all annotation instances from the store, setting their drIndex values to null in the process. |
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
T |
create(Class<T> klass)
Creates a new annotation instance, adds it to the store, and returns the instance. |
|
void |
create(Class<T> klass,
int n)
Creates n new annotation instances, adding them all to the store. |
|
boolean |
equals(Object o)
|
|
T |
get(int index)
|
|
int |
hashCode()
|
|
int |
indexOf(Object o)
|
|
boolean |
isEmpty()
|
|
Iterator<T> |
iterator()
|
|
int |
lastIndexOf(Object o)
|
|
ListIterator<T> |
listIterator()
|
|
ListIterator<T> |
listIterator(int index)
|
|
T |
remove(int index)
This method is unsupported but required by the List interface. |
|
boolean |
remove(Object o)
This method is unsupported but required by the List interface. |
|
boolean |
removeAll(Collection<?> c)
This method is unsupported but required by the List interface. |
|
boolean |
retainAll(Collection<?> c)
This method is unsupported but required by the List interface. |
|
T |
set(int index,
T o)
This method is unsupported but required by the List interface. |
|
int |
size()
|
|
List<T> |
subList(int fromIndex,
int toIndex)
This method is unsupported but required by the List interface. |
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final List<T extends Ann> items
| Constructor Detail |
|---|
public Store()
| Method Detail |
|---|
public boolean add(T obj)
Ann instance to the store, setting the drIndex attribute in the process.
add in interface Collection<T extends Ann>add in interface List<T extends Ann>
public void add(int index,
T o)
List interface.
add in interface List<T extends Ann>UnsupportedOperationExceptionpublic boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T extends Ann>addAll in interface List<T extends Ann>add(Ann)
public boolean addAll(int index,
Collection<? extends T> c)
addAll in interface List<T extends Ann>UnsupportedOperationExceptionadd(int, Ann)public void clear()
clear in interface Collection<T extends Ann>clear in interface List<T extends Ann>public boolean contains(Object o)
contains in interface Collection<T extends Ann>contains in interface List<T extends Ann>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T extends Ann>containsAll in interface List<T extends Ann>public T create(Class<T> klass)
public void create(Class<T> klass,
int n)
create(Class)public boolean equals(Object o)
equals in interface Collection<T extends Ann>equals in interface List<T extends Ann>equals in class Objectpublic T get(int index)
get in interface List<T extends Ann>public int hashCode()
hashCode in interface Collection<T extends Ann>hashCode in interface List<T extends Ann>hashCode in class Objectpublic int indexOf(Object o)
indexOf in interface List<T extends Ann>public boolean isEmpty()
isEmpty in interface Collection<T extends Ann>isEmpty in interface List<T extends Ann>public Iterator<T> iterator()
iterator in interface Iterable<T extends Ann>iterator in interface Collection<T extends Ann>iterator in interface List<T extends Ann>public int lastIndexOf(Object o)
lastIndexOf in interface List<T extends Ann>public ListIterator<T> listIterator()
listIterator in interface List<T extends Ann>public ListIterator<T> listIterator(int index)
listIterator in interface List<T extends Ann>public T remove(int index)
List interface.
remove in interface List<T extends Ann>UnsupportedOperationExceptionpublic boolean remove(Object o)
List interface.
remove in interface Collection<T extends Ann>remove in interface List<T extends Ann>UnsupportedOperationExceptionpublic boolean removeAll(Collection<?> c)
List interface.
removeAll in interface Collection<T extends Ann>removeAll in interface List<T extends Ann>UnsupportedOperationExceptionpublic boolean retainAll(Collection<?> c)
List interface.
retainAll in interface Collection<T extends Ann>retainAll in interface List<T extends Ann>UnsupportedOperationException
public T set(int index,
T o)
List interface.
set in interface List<T extends Ann>UnsupportedOperationExceptionpublic int size()
size in interface Collection<T extends Ann>size in interface List<T extends Ann>
public List<T> subList(int fromIndex,
int toIndex)
List interface.
subList in interface List<T extends Ann>UnsupportedOperationExceptionpublic Object[] toArray()
toArray in interface Collection<T extends Ann>toArray in interface List<T extends Ann>public <T> T[] toArray(T[] a)
toArray in interface Collection<T extends Ann>toArray in interface List<T extends Ann>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||