edu.mit.jverbnet.util.parse
Class LazyForwardingHandler.ForwardingTaskList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<ITaggedBlockTaskHandler>
          extended by edu.mit.jverbnet.util.parse.LazyForwardingHandler.ForwardingTaskList
All Implemented Interfaces:
Iterable<ITaggedBlockTaskHandler>, Collection<ITaggedBlockTaskHandler>, List<ITaggedBlockTaskHandler>
Enclosing class:
LazyForwardingHandler<T>

protected class LazyForwardingHandler.ForwardingTaskList
extends AbstractList<ITaggedBlockTaskHandler>

This task list keeps track of tasks before the backing handler is instantiated.

Since:
JVerbnet 1.0.0
Version:
1.0.0
Author:
Mark A. Finlayson

Field Summary
protected  List<ITaggedBlockTaskHandler> internalList
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected LazyForwardingHandler.ForwardingTaskList()
           
 
Method Summary
 void add(int index, ITaggedBlockTaskHandler element)
           
 ITaggedBlockTaskHandler get(int index)
           
protected  List<ITaggedBlockTaskHandler> getBackingList()
          Returns the current task list for the lazy handler; either the temporary task list, or, if the backing handler has been instantiated, the task list of the backing handler.
protected  List<ITaggedBlockTaskHandler> getInternalList()
          Returns the internal list for this task list.
 ITaggedBlockTaskHandler remove(int index)
           
 ITaggedBlockTaskHandler set(int index, ITaggedBlockTaskHandler element)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, 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

internalList

protected List<ITaggedBlockTaskHandler> internalList
Constructor Detail

LazyForwardingHandler.ForwardingTaskList

protected LazyForwardingHandler.ForwardingTaskList()
Method Detail

getBackingList

protected List<ITaggedBlockTaskHandler> getBackingList()
Returns the current task list for the lazy handler; either the temporary task list, or, if the backing handler has been instantiated, the task list of the backing handler.

Returns:
the current task list for the lazy handler
Since:
JVerbnet 1.0.0

getInternalList

protected List<ITaggedBlockTaskHandler> getInternalList()
Returns the internal list for this task list.

Returns:
the internal list for this task list.
Since:
JVerbnet 1.0.0

get

public ITaggedBlockTaskHandler get(int index)
Specified by:
get in interface List<ITaggedBlockTaskHandler>
Specified by:
get in class AbstractList<ITaggedBlockTaskHandler>

size

public int size()
Specified by:
size in interface Collection<ITaggedBlockTaskHandler>
Specified by:
size in interface List<ITaggedBlockTaskHandler>
Specified by:
size in class AbstractCollection<ITaggedBlockTaskHandler>

set

public ITaggedBlockTaskHandler set(int index,
                                   ITaggedBlockTaskHandler element)
Specified by:
set in interface List<ITaggedBlockTaskHandler>
Overrides:
set in class AbstractList<ITaggedBlockTaskHandler>

add

public void add(int index,
                ITaggedBlockTaskHandler element)
Specified by:
add in interface List<ITaggedBlockTaskHandler>
Overrides:
add in class AbstractList<ITaggedBlockTaskHandler>

remove

public ITaggedBlockTaskHandler remove(int index)
Specified by:
remove in interface List<ITaggedBlockTaskHandler>
Overrides:
remove in class AbstractList<ITaggedBlockTaskHandler>


Copyright © 2012 Massachusetts Institute of Technology. All Rights Reserved.