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