1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
11
public class CapVolatilityStructure {
12
private long swigCPtr;
13
protected boolean swigCMemOwn;
15
protected CapVolatilityStructure(long cPtr, boolean cMemoryOwn) {
16
swigCMemOwn = cMemoryOwn;
20
protected static long getCPtr(CapVolatilityStructure obj) {
21
return (obj == null) ? 0 : obj.swigCPtr;
24
protected void finalize() {
28
public synchronized void delete() {
29
if(swigCPtr != 0 && swigCMemOwn) {
31
QuantLibJNI.delete_CapVolatilityStructure(swigCPtr);
36
public SWIGTYPE_p_CapVolatilityStructure __deref__() {
37
long cPtr = QuantLibJNI.CapVolatilityStructure___deref__(swigCPtr, this);
38
return (cPtr == 0) ? null : new SWIGTYPE_p_CapVolatilityStructure(cPtr, false);
41
public boolean isNull() {
42
return QuantLibJNI.CapVolatilityStructure_isNull(swigCPtr, this);
45
public Observable asObservable() {
46
return new Observable(QuantLibJNI.CapVolatilityStructure_asObservable(swigCPtr, this), true);
49
public CapVolatilityStructure() {
50
this(QuantLibJNI.new_CapVolatilityStructure(), true);
53
public double volatility(Date end, double strike) {
54
return QuantLibJNI.CapVolatilityStructure_volatility__SWIG_0(swigCPtr, this, Date.getCPtr(end), end, strike);
57
public double volatility(double end, double strike) {
58
return QuantLibJNI.CapVolatilityStructure_volatility__SWIG_1(swigCPtr, this, end, strike);