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