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