- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<DoublePair>
-
- org.quantlib.DoublePairVector
-
- All Implemented Interfaces:
AutoCloseable,Iterable<DoublePair>,Collection<DoublePair>,List<DoublePair>,RandomAccess,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class DoublePairVector extends AbstractList<DoublePair> implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable, RandomAccess
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Modifier Constructor Description DoublePairVector()DoublePairVector(int count, DoublePair value)protectedDoublePairVector(long cPtr, boolean cMemoryOwn)DoublePairVector(Iterable<DoublePair> initialElements)DoublePairVector(DoublePair[] initialElements)DoublePairVector(DoublePairVector other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, DoublePair e)booleanadd(DoublePair e)longcapacity()voidclear()voiddelete()protected voidfinalize()DoublePairget(int index)protected static longgetCPtr(DoublePairVector obj)booleanisEmpty()DoublePairremove(int index)protected voidremoveRange(int fromIndex, int toIndex)voidreserve(long n)DoublePairset(int index, DoublePair e)intsize()protected static longswigRelease(DoublePairVector 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, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Field Detail
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Detail
-
DoublePairVector
protected DoublePairVector(long cPtr, boolean cMemoryOwn)
-
DoublePairVector
public DoublePairVector(DoublePair[] initialElements)
-
DoublePairVector
public DoublePairVector(Iterable<DoublePair> initialElements)
-
DoublePairVector
public DoublePairVector()
-
DoublePairVector
public DoublePairVector(DoublePairVector other)
-
DoublePairVector
public DoublePairVector(int count, DoublePair value)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(DoublePairVector obj)
-
swigRelease
protected static long swigRelease(DoublePairVector obj)
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
get
public DoublePair get(int index)
- Specified by:
getin interfaceList<DoublePair>- Specified by:
getin classAbstractList<DoublePair>
-
set
public DoublePair set(int index, DoublePair e)
- Specified by:
setin interfaceList<DoublePair>- Overrides:
setin classAbstractList<DoublePair>
-
add
public boolean add(DoublePair e)
- Specified by:
addin interfaceCollection<DoublePair>- Specified by:
addin interfaceList<DoublePair>- Overrides:
addin classAbstractList<DoublePair>
-
add
public void add(int index, DoublePair e)
- Specified by:
addin interfaceList<DoublePair>- Overrides:
addin classAbstractList<DoublePair>
-
remove
public DoublePair remove(int index)
- Specified by:
removein interfaceList<DoublePair>- Overrides:
removein classAbstractList<DoublePair>
-
removeRange
protected void removeRange(int fromIndex, int toIndex)
- Overrides:
removeRangein classAbstractList<DoublePair>
-
size
public int size()
- Specified by:
sizein interfaceCollection<DoublePair>- Specified by:
sizein interfaceList<DoublePair>- Specified by:
sizein classAbstractCollection<DoublePair>
-
capacity
public long capacity()
-
reserve
public void reserve(long n)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<DoublePair>- Specified by:
isEmptyin interfaceList<DoublePair>- Overrides:
isEmptyin classAbstractCollection<DoublePair>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<DoublePair>- Specified by:
clearin interfaceList<DoublePair>- Overrides:
clearin classAbstractList<DoublePair>
-
-