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