Package org.arakhne.afc.math.geometry.d3
Class MultiShape3D.BackendIterator<CT extends Shape3D<?,?,?,?,?,?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.MultiShape3D.BackendIterator<CT>
-
- Type Parameters:
CT
- the type of the iterated shapes.
- All Implemented Interfaces:
Iterator<CT>
,ListIterator<CT>
- Enclosing interface:
- MultiShape3D<ST extends Shape3D<?,?,I,P,V,B>,IT extends MultiShape3D<?,?,CT,I,P,V,B>,CT extends Shape3D<?,?,I,P,V,B>,I extends PathIterator3D<?>,P extends Point3D<? super P,? super V>,V extends Vector3D<? super V,? super P>,B extends Shape3D<?,?,I,P,V,B>>
public static class MultiShape3D.BackendIterator<CT extends Shape3D<?,?,?,?,?,?>> 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(MultiShape3D<?,?,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(MultiShape3D<?,?,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 Shape3D<?,?,?,?,?,?>>
-
previous
public CT previous()
- Specified by:
previous
in interfaceListIterator<CT extends Shape3D<?,?,?,?,?,?>>
-
nextIndex
@Pure public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<CT extends Shape3D<?,?,?,?,?,?>>
-
previousIndex
@Pure public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<CT extends Shape3D<?,?,?,?,?,?>>
-
set
public void set(CT element)
- Specified by:
set
in interfaceListIterator<CT extends Shape3D<?,?,?,?,?,?>>
-
add
public void add(CT element)
- Specified by:
add
in interfaceListIterator<CT extends Shape3D<?,?,?,?,?,?>>
-
-