net.ranides.assira.collection.list
Class ImmutableListIterator<T>

java.lang.Object
  extended by net.ranides.assira.collection.list.AbstractListIterator<T>
      extended by net.ranides.assira.collection.list.ImmutableListIterator<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterator<T>, ListIterator<T>

public abstract class ImmutableListIterator<T>
extends AbstractListIterator<T>

Klasa abstrakcyjna wygodna do implementowania iteratora przeglądającego kolekcje tylko do odczytu. Szczególnie wygodna przy pisaniu delegatorów, które nie muszą koncentrować się na implementacji logiki iteratora.

Author:
ranides

Constructor Summary
ImmutableListIterator()
           
ImmutableListIterator(int index)
          Tworzy iterator wskazujący na podaną pozycję w liście.
 
Method Summary
 
Methods inherited from class net.ranides.assira.collection.list.AbstractListIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableListIterator

public ImmutableListIterator(int index)
Tworzy iterator wskazujący na podaną pozycję w liście.

Parameters:
index -

ImmutableListIterator

public ImmutableListIterator()


Copyright © 2013. All Rights Reserved.