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