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