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