org.nuiton.util
Class MatrixMap.MatrixMapIteratorImpl<E>
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iterator
protected MatrixMap.MatrixIterator<E> iterator
semantics
protected List[] semantics
pos
protected int pos
MatrixMap.MatrixMapIteratorImpl
public MatrixMap.MatrixMapIteratorImpl(MatrixMap.MatrixIterator<E> iterator,
List[] semantics)
- Parameters:
iterator - la matrice sur lequel l'iterator doit travaillersemantics - la semantique de matrix, si matrix n'a pas de semantique
alors il faut passer null
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.