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:
java.lang.Iterable<ITaggedBlockTaskHandler>, java.util.Collection<ITaggedBlockTaskHandler>, java.util.List<ITaggedBlockTaskHandler>
Enclosing class:
LazyForwardingHandler<T>

protected class LazyForwardingHandler.ForwardingTaskList
extends java.util.AbstractList<ITaggedBlockTaskHandler>

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

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

Field Summary
protected  java.util.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  java.util.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  java.util.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 java.util.List<ITaggedBlockTaskHandler> internalList
Constructor Detail

LazyForwardingHandler.ForwardingTaskList

protected LazyForwardingHandler.ForwardingTaskList()
Method Detail

getBackingList

protected java.util.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 java.util.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 java.util.List<ITaggedBlockTaskHandler>
Specified by:
get in class java.util.AbstractList<ITaggedBlockTaskHandler>

size

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

set

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

add

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

remove

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


Copyright © 2012 ${project.organization.name}. All Rights Reserved.