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