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