gate.creole
Class CreoleRegisterImpl.TypedResourceList<T extends Resource>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by 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.


Field Summary
private  List<Resource> backingList
           
private  Class<T> realType
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CreoleRegisterImpl.TypedResourceList(List<Resource> backingList, Class<T> realType)
           
 
Method Summary
 T get(int i)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

backingList

private List<Resource> backingList

realType

private Class<T extends Resource> realType
Constructor Detail

CreoleRegisterImpl.TypedResourceList

CreoleRegisterImpl.TypedResourceList(List<Resource> backingList,
                                     Class<T> realType)
Method Detail

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>