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