Package org.itk.simple
Class VectorDouble
- All Implemented Interfaces:
Iterable<Double>
,Collection<Double>
,List<Double>
,RandomAccess
,SequencedCollection<Double>
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsModifierConstructorDescriptionVectorDouble
(double[] initialElements) VectorDouble
(int count, double value) protected
VectorDouble
(long cPtr, boolean cMemoryOwn) VectorDouble
(Iterable<Double> initialElements) VectorDouble
(VectorDouble other) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
long
capacity()
void
clear()
void
delete()
protected void
finalize()
get
(int index) protected static long
getCPtr
(VectorDouble obj) boolean
isEmpty()
remove
(int index) protected void
removeRange
(int fromIndex, int toIndex) void
reserve
(long n) int
size()
protected static long
swigRelease
(VectorDouble obj) Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
VectorDouble
protected VectorDouble(long cPtr, boolean cMemoryOwn) -
VectorDouble
public VectorDouble(double[] initialElements) -
VectorDouble
-
VectorDouble
public VectorDouble() -
VectorDouble
-
VectorDouble
public VectorDouble(int count, double value)
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize() -
delete
public void delete() -
get
-
set
-
add
- Specified by:
add
in interfaceCollection<Double>
- Specified by:
add
in interfaceList<Double>
- Overrides:
add
in classAbstractList<Double>
-
add
-
remove
-
removeRange
protected void removeRange(int fromIndex, int toIndex) - Overrides:
removeRange
in classAbstractList<Double>
-
size
public int size()- Specified by:
size
in interfaceCollection<Double>
- Specified by:
size
in interfaceList<Double>
- Specified by:
size
in classAbstractCollection<Double>
-
capacity
public long capacity() -
reserve
public void reserve(long n) -
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Double>
- Specified by:
isEmpty
in interfaceList<Double>
- Overrides:
isEmpty
in classAbstractCollection<Double>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Double>
- Specified by:
clear
in interfaceList<Double>
- Overrides:
clear
in classAbstractList<Double>
-