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