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