org.nuiton.util
Class MatrixMap.MatrixMapIteratorImpl<E>

java.lang.Object
  extended by org.nuiton.util.MatrixMap.MatrixMapIteratorImpl<E>
All Implemented Interfaces:
Iterator<E>, MatrixMap.MatrixMapIterator<E>
Enclosing interface:
MatrixMap<E>

public static class MatrixMap.MatrixMapIteratorImpl<E>
extends Object
implements MatrixMap.MatrixMapIterator<E>


Field Summary
protected  MatrixMap.MatrixIterator<E> iterator
           
protected  int pos
           
protected  List[] semantics
           
 
Constructor Summary
MatrixMap.MatrixMapIteratorImpl(MatrixMap.MatrixIterator<E> iterator, List[] semantics)
           
 
Method Summary
 int[] getCoordinates()
           
 Object[] getSemanticsCoordinates()
           
 E getValue()
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 void setValue(E value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

protected MatrixMap.MatrixIterator<E> iterator

semantics

protected List[] semantics

pos

protected int pos
Constructor Detail

MatrixMap.MatrixMapIteratorImpl

public MatrixMap.MatrixMapIteratorImpl(MatrixMap.MatrixIterator<E> iterator,
                                       List[] semantics)
Parameters:
iterator - la matrice sur lequel l'iterator doit travailler
semantics - la semantique de matrix, si matrix n'a pas de semantique alors il faut passer null
Method Detail

hasNext

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

next

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

remove

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

getCoordinates

public int[] getCoordinates()
Specified by:
getCoordinates in interface MatrixMap.MatrixMapIterator<E>

getValue

public E getValue()
Specified by:
getValue in interface MatrixMap.MatrixMapIterator<E>

setValue

public void setValue(E value)
Specified by:
setValue in interface MatrixMap.MatrixMapIterator<E>

getSemanticsCoordinates

public Object[] getSemanticsCoordinates()
Specified by:
getSemanticsCoordinates in interface MatrixMap.MatrixMapIterator<E>


Copyright © 2004-2012 CodeLutin. All Rights Reserved.