Package org.arakhne.afc.math.geometry.d2
Class MultiShape2D.BackendIterator<CT extends Shape2D<?,?,?,?,?,?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.MultiShape2D.BackendIterator<CT>
-
- Type Parameters:
CT
- the type of the iterated shapes.
- All Implemented Interfaces:
Iterator<CT>
,ListIterator<CT>
- Enclosing interface:
- MultiShape2D<ST extends Shape2D<?,?,I,P,V,B>,IT extends MultiShape2D<?,?,CT,I,P,V,B>,CT extends Shape2D<?,?,I,P,V,B>,I extends PathIterator2D<?>,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Shape2D<?,?,I,P,V,B>>
public static class MultiShape2D.BackendIterator<CT extends Shape2D<?,?,?,?,?,?>> extends Object implements ListIterator<CT>
Iterator on elements of a list that is able to notify the backend when the iterator has change the backend data.- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description BackendIterator(MultiShape2D<?,?,CT,?,?,?,?> backend, ListIterator<CT> iterator)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CT element)
boolean
hasNext()
boolean
hasPrevious()
CT
next()
int
nextIndex()
CT
previous()
int
previousIndex()
void
remove()
void
set(CT element)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
BackendIterator
public BackendIterator(MultiShape2D<?,?,CT,?,?,?,?> backend, ListIterator<CT> iterator)
Constructor.- Parameters:
backend
- the associated backend.iterator
- the original iterator.
-
-
Method Detail
-
hasNext
@Pure public boolean hasNext()
-
next
public CT next()
-
remove
public void remove()
-
hasPrevious
@Pure public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<CT extends Shape2D<?,?,?,?,?,?>>
-
previous
public CT previous()
- Specified by:
previous
in interfaceListIterator<CT extends Shape2D<?,?,?,?,?,?>>
-
nextIndex
@Pure public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<CT extends Shape2D<?,?,?,?,?,?>>
-
previousIndex
@Pure public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<CT extends Shape2D<?,?,?,?,?,?>>
-
set
public void set(CT element)
- Specified by:
set
in interfaceListIterator<CT extends Shape2D<?,?,?,?,?,?>>
-
add
public void add(CT element)
- Specified by:
add
in interfaceListIterator<CT extends Shape2D<?,?,?,?,?,?>>
-
-