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