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