gov.sandia.cognition.collection
Class FiniteCapacityBuffer.InternalIterator

java.lang.Object
  extended by gov.sandia.cognition.collection.FiniteCapacityBuffer.InternalIterator
All Implemented Interfaces:
Iterator<DataType>, ListIterator<DataType>
Enclosing class:
FiniteCapacityBuffer<DataType>

protected class FiniteCapacityBuffer.InternalIterator
extends Object
implements ListIterator<DataType>

Iterator for FiniteCapacityBuffer


Constructor Summary
FiniteCapacityBuffer.InternalIterator()
          Default constructor
 
Method Summary
 void add(DataType o)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 DataType next()
           
 int nextIndex()
           
 DataType previous()
           
 int previousIndex()
           
 void remove()
           
 void set(DataType o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FiniteCapacityBuffer.InternalIterator

public FiniteCapacityBuffer.InternalIterator()
Default constructor

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<DataType>
Specified by:
hasNext in interface ListIterator<DataType>

next

public DataType next()
Specified by:
next in interface Iterator<DataType>
Specified by:
next in interface ListIterator<DataType>

remove

public void remove()
Specified by:
remove in interface Iterator<DataType>
Specified by:
remove in interface ListIterator<DataType>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator<DataType>

previous

public DataType previous()
Specified by:
previous in interface ListIterator<DataType>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator<DataType>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator<DataType>

set

public void set(DataType o)
Specified by:
set in interface ListIterator<DataType>

add

public void add(DataType o)
Specified by:
add in interface ListIterator<DataType>