Package org.robwork.sdurw_geometry
Class VectorIndexedTriangle
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<IndexedTriangle>
-
- org.robwork.sdurw_geometry.VectorIndexedTriangle
-
- All Implemented Interfaces:
java.lang.Iterable<IndexedTriangle>
,java.util.Collection<IndexedTriangle>
,java.util.List<IndexedTriangle>
,java.util.RandomAccess
public class VectorIndexedTriangle extends java.util.AbstractList<IndexedTriangle> implements java.util.RandomAccess
-
-
Constructor Summary
Constructors Constructor Description VectorIndexedTriangle()
VectorIndexedTriangle(int count, IndexedTriangle value)
VectorIndexedTriangle(long cPtr, boolean cMemoryOwn)
VectorIndexedTriangle(java.lang.Iterable<IndexedTriangle> initialElements)
VectorIndexedTriangle(IndexedTriangle[] initialElements)
VectorIndexedTriangle(VectorIndexedTriangle other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, IndexedTriangle e)
boolean
add(IndexedTriangle e)
long
capacity()
void
clear()
void
delete()
IndexedTriangle
get(int index)
static long
getCPtr(VectorIndexedTriangle obj)
boolean
isEmpty()
IndexedTriangle
remove(int index)
void
reserve(long n)
IndexedTriangle
set(int index, IndexedTriangle e)
int
size()
-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
-
-
-
-
Constructor Detail
-
VectorIndexedTriangle
public VectorIndexedTriangle(long cPtr, boolean cMemoryOwn)
-
VectorIndexedTriangle
public VectorIndexedTriangle(IndexedTriangle[] initialElements)
-
VectorIndexedTriangle
public VectorIndexedTriangle(java.lang.Iterable<IndexedTriangle> initialElements)
-
VectorIndexedTriangle
public VectorIndexedTriangle()
-
VectorIndexedTriangle
public VectorIndexedTriangle(VectorIndexedTriangle other)
-
VectorIndexedTriangle
public VectorIndexedTriangle(int count, IndexedTriangle value)
-
-
Method Detail
-
getCPtr
public static long getCPtr(VectorIndexedTriangle obj)
-
delete
public void delete()
-
get
public IndexedTriangle get(int index)
- Specified by:
get
in interfacejava.util.List<IndexedTriangle>
- Specified by:
get
in classjava.util.AbstractList<IndexedTriangle>
-
set
public IndexedTriangle set(int index, IndexedTriangle e)
- Specified by:
set
in interfacejava.util.List<IndexedTriangle>
- Overrides:
set
in classjava.util.AbstractList<IndexedTriangle>
-
add
public boolean add(IndexedTriangle e)
- Specified by:
add
in interfacejava.util.Collection<IndexedTriangle>
- Specified by:
add
in interfacejava.util.List<IndexedTriangle>
- Overrides:
add
in classjava.util.AbstractList<IndexedTriangle>
-
add
public void add(int index, IndexedTriangle e)
- Specified by:
add
in interfacejava.util.List<IndexedTriangle>
- Overrides:
add
in classjava.util.AbstractList<IndexedTriangle>
-
remove
public IndexedTriangle remove(int index)
- Specified by:
remove
in interfacejava.util.List<IndexedTriangle>
- Overrides:
remove
in classjava.util.AbstractList<IndexedTriangle>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<IndexedTriangle>
- Specified by:
size
in interfacejava.util.List<IndexedTriangle>
- Specified by:
size
in classjava.util.AbstractCollection<IndexedTriangle>
-
capacity
public long capacity()
-
reserve
public void reserve(long n)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<IndexedTriangle>
- Specified by:
isEmpty
in interfacejava.util.List<IndexedTriangle>
- Overrides:
isEmpty
in classjava.util.AbstractCollection<IndexedTriangle>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<IndexedTriangle>
- Specified by:
clear
in interfacejava.util.List<IndexedTriangle>
- Overrides:
clear
in classjava.util.AbstractList<IndexedTriangle>
-
-