Package org.arakhne.afc.math.geometry.d3
Class MultiShape3D.BackendList<CT extends Shape3D<?,?,?,?,?,?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.MultiShape3D.BackendList<CT>
-
- Type Parameters:
CT
- the type of the shapes in the list view.
- All Implemented Interfaces:
Iterable<CT>
,Collection<CT>
,List<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.BackendList<CT extends Shape3D<?,?,?,?,?,?>> extends Object implements List<CT>
View on a list that is able to notify the backend when the view 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 BackendList(MultiShape3D<?,?,CT,?,?,?,?> backend, List<CT> list)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, CT element)
boolean
add(CT element)
boolean
addAll(int index, Collection<? extends CT> collection)
boolean
addAll(Collection<? extends CT> collection)
void
clear()
boolean
contains(Object obj)
boolean
containsAll(Collection<?> collection)
CT
get(int index)
int
indexOf(Object obj)
boolean
isEmpty()
Iterator<CT>
iterator()
int
lastIndexOf(Object obj)
ListIterator<CT>
listIterator()
ListIterator<CT>
listIterator(int index)
CT
remove(int index)
boolean
remove(Object obj)
boolean
removeAll(Collection<?> collection)
boolean
retainAll(Collection<?> collection)
CT
set(int index, CT element)
int
size()
List<CT>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] array)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
BackendList
public BackendList(MultiShape3D<?,?,CT,?,?,?,?> backend, List<CT> list)
Constructor.- Parameters:
backend
- the associated backend.list
- the original list.
-
-
Method Detail
-
size
@Pure public int size()
-
isEmpty
@Pure public boolean isEmpty()
-
contains
@Pure public boolean contains(Object obj)
-
toArray
@Pure public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
add
public boolean add(CT element)
-
add
public void add(int index, CT element)
-
remove
public boolean remove(Object obj)
-
remove
public CT remove(int index)
-
containsAll
@Pure public boolean containsAll(Collection<?> collection)
- Specified by:
containsAll
in interfaceCollection<CT extends Shape3D<?,?,?,?,?,?>>
- Specified by:
containsAll
in interfaceList<CT extends Shape3D<?,?,?,?,?,?>>
-
addAll
public boolean addAll(Collection<? extends CT> collection)
-
addAll
public boolean addAll(int index, Collection<? extends CT> collection)
-
removeAll
public boolean removeAll(Collection<?> collection)
-
retainAll
public boolean retainAll(Collection<?> collection)
-
clear
public void clear()
-
get
@Pure public CT get(int index)
-
indexOf
@Pure public int indexOf(Object obj)
-
lastIndexOf
@Pure public int lastIndexOf(Object obj)
- Specified by:
lastIndexOf
in interfaceList<CT extends Shape3D<?,?,?,?,?,?>>
-
listIterator
@Pure public ListIterator<CT> listIterator()
- Specified by:
listIterator
in interfaceList<CT extends Shape3D<?,?,?,?,?,?>>
-
listIterator
public ListIterator<CT> listIterator(int index)
- Specified by:
listIterator
in interfaceList<CT extends Shape3D<?,?,?,?,?,?>>
-
-