gate.creole
Class CreoleRegisterImpl.TypedResourceList<T extends Resource>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
gate.creole.CreoleRegisterImpl.TypedResourceList<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, List<T>
- Enclosing class:
- CreoleRegisterImpl
private static class CreoleRegisterImpl.TypedResourceList<T extends Resource>
- extends AbstractList<T>
Type-safe read-only list used by getLrInstances, getPrInstances, etc.
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
backingList
private List<Resource> backingList
realType
private Class<T extends Resource> realType
CreoleRegisterImpl.TypedResourceList
CreoleRegisterImpl.TypedResourceList(List<Resource> backingList,
Class<T> realType)
get
public T get(int i)
- Specified by:
get in interface List<T extends Resource>- Specified by:
get in class AbstractList<T extends Resource>
size
public int size()
- Specified by:
size in interface Collection<T extends Resource>- Specified by:
size in interface List<T extends Resource>- Specified by:
size in class AbstractCollection<T extends Resource>