- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<SwapIndex>
-
- org.quantlib.SwapIndexVector
-
- All Implemented Interfaces:
AutoCloseable,Iterable<SwapIndex>,Collection<SwapIndex>,List<SwapIndex>,RandomAccess,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class SwapIndexVector extends AbstractList<SwapIndex> 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 SwapIndexVector()SwapIndexVector(int count, SwapIndex value)protectedSwapIndexVector(long cPtr, boolean cMemoryOwn)SwapIndexVector(Iterable<SwapIndex> initialElements)SwapIndexVector(SwapIndex[] initialElements)SwapIndexVector(SwapIndexVector other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, SwapIndex e)booleanadd(SwapIndex e)longcapacity()voidclear()voiddelete()protected voidfinalize()SwapIndexget(int index)protected static longgetCPtr(SwapIndexVector obj)booleanisEmpty()SwapIndexremove(int index)protected voidremoveRange(int fromIndex, int toIndex)voidreserve(long n)SwapIndexset(int index, SwapIndex e)intsize()protected static longswigRelease(SwapIndexVector 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
-
SwapIndexVector
protected SwapIndexVector(long cPtr, boolean cMemoryOwn)
-
SwapIndexVector
public SwapIndexVector(SwapIndex[] initialElements)
-
SwapIndexVector
public SwapIndexVector(Iterable<SwapIndex> initialElements)
-
SwapIndexVector
public SwapIndexVector()
-
SwapIndexVector
public SwapIndexVector(SwapIndexVector other)
-
SwapIndexVector
public SwapIndexVector(int count, SwapIndex value)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(SwapIndexVector obj)
-
swigRelease
protected static long swigRelease(SwapIndexVector obj)
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
add
public boolean add(SwapIndex e)
- Specified by:
addin interfaceCollection<SwapIndex>- Specified by:
addin interfaceList<SwapIndex>- Overrides:
addin classAbstractList<SwapIndex>
-
removeRange
protected void removeRange(int fromIndex, int toIndex)
- Overrides:
removeRangein classAbstractList<SwapIndex>
-
size
public int size()
- Specified by:
sizein interfaceCollection<SwapIndex>- Specified by:
sizein interfaceList<SwapIndex>- Specified by:
sizein classAbstractCollection<SwapIndex>
-
capacity
public long capacity()
-
reserve
public void reserve(long n)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<SwapIndex>- Specified by:
isEmptyin interfaceList<SwapIndex>- Overrides:
isEmptyin classAbstractCollection<SwapIndex>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<SwapIndex>- Specified by:
clearin interfaceList<SwapIndex>- Overrides:
clearin classAbstractList<SwapIndex>
-
-