001/* ----------------------------------------------------------------------------
002 * This file was automatically generated by SWIG (https://www.swig.org).
003 * Version 4.1.1
004 *
005 * Do not make changes to this file unless you know what you are doing - modify
006 * the SWIG interface file instead.
007 * ----------------------------------------------------------------------------- */
008
009package org.quantlib;
010
011public class FraRateHelper extends RateHelper implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable {
012  private transient long swigCPtr;
013  private transient boolean swigCMemOwnDerived;
014
015  protected FraRateHelper(long cPtr, boolean cMemoryOwn) {
016    super(QuantLibJNI.FraRateHelper_SWIGSmartPtrUpcast(cPtr), true);
017    swigCMemOwnDerived = cMemoryOwn;
018    swigCPtr = cPtr;
019  }
020
021  protected static long getCPtr(FraRateHelper obj) {
022    return (obj == null) ? 0 : obj.swigCPtr;
023  }
024
025  protected void swigSetCMemOwn(boolean own) {
026    swigCMemOwnDerived = own;
027    super.swigSetCMemOwn(own);
028  }
029
030  @SuppressWarnings("deprecation")
031  protected void finalize() {
032    delete();
033  }
034
035  public synchronized void delete() {
036    if (swigCPtr != 0) {
037      if (swigCMemOwnDerived) {
038        swigCMemOwnDerived = false;
039        QuantLibJNI.delete_FraRateHelper(swigCPtr);
040      }
041      swigCPtr = 0;
042    }
043    super.delete();
044  }
045
046  public FraRateHelper(QuoteHandle rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
047    this(QuantLibJNI.new_FraRateHelper__SWIG_0(QuoteHandle.getCPtr(rate), rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
048  }
049
050  public FraRateHelper(QuoteHandle rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter, Pillar.Choice pillar, Date customPillarDate) {
051    this(QuantLibJNI.new_FraRateHelper__SWIG_1(QuoteHandle.getCPtr(rate), rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
052  }
053
054  public FraRateHelper(QuoteHandle rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter, Pillar.Choice pillar) {
055    this(QuantLibJNI.new_FraRateHelper__SWIG_2(QuoteHandle.getCPtr(rate), rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter, pillar.swigValue()), true);
056  }
057
058  public FraRateHelper(QuoteHandle rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter) {
059    this(QuantLibJNI.new_FraRateHelper__SWIG_3(QuoteHandle.getCPtr(rate), rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter), true);
060  }
061
062  public FraRateHelper(double rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
063    this(QuantLibJNI.new_FraRateHelper__SWIG_4(rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
064  }
065
066  public FraRateHelper(double rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter, Pillar.Choice pillar, Date customPillarDate) {
067    this(QuantLibJNI.new_FraRateHelper__SWIG_5(rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
068  }
069
070  public FraRateHelper(double rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter, Pillar.Choice pillar) {
071    this(QuantLibJNI.new_FraRateHelper__SWIG_6(rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter, pillar.swigValue()), true);
072  }
073
074  public FraRateHelper(double rate, long monthsToStart, long monthsToEnd, long fixingDays, Calendar calendar, BusinessDayConvention convention, boolean endOfMonth, DayCounter dayCounter) {
075    this(QuantLibJNI.new_FraRateHelper__SWIG_7(rate, monthsToStart, monthsToEnd, fixingDays, Calendar.getCPtr(calendar), calendar, convention.swigValue(), endOfMonth, DayCounter.getCPtr(dayCounter), dayCounter), true);
076  }
077
078  public FraRateHelper(QuoteHandle rate, long monthsToStart, IborIndex index, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
079    this(QuantLibJNI.new_FraRateHelper__SWIG_8(QuoteHandle.getCPtr(rate), rate, monthsToStart, IborIndex.getCPtr(index), index, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
080  }
081
082  public FraRateHelper(QuoteHandle rate, long monthsToStart, IborIndex index, Pillar.Choice pillar, Date customPillarDate) {
083    this(QuantLibJNI.new_FraRateHelper__SWIG_9(QuoteHandle.getCPtr(rate), rate, monthsToStart, IborIndex.getCPtr(index), index, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
084  }
085
086  public FraRateHelper(QuoteHandle rate, long monthsToStart, IborIndex index, Pillar.Choice pillar) {
087    this(QuantLibJNI.new_FraRateHelper__SWIG_10(QuoteHandle.getCPtr(rate), rate, monthsToStart, IborIndex.getCPtr(index), index, pillar.swigValue()), true);
088  }
089
090  public FraRateHelper(QuoteHandle rate, long monthsToStart, IborIndex index) {
091    this(QuantLibJNI.new_FraRateHelper__SWIG_11(QuoteHandle.getCPtr(rate), rate, monthsToStart, IborIndex.getCPtr(index), index), true);
092  }
093
094  public FraRateHelper(double rate, long monthsToStart, IborIndex index, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
095    this(QuantLibJNI.new_FraRateHelper__SWIG_12(rate, monthsToStart, IborIndex.getCPtr(index), index, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
096  }
097
098  public FraRateHelper(double rate, long monthsToStart, IborIndex index, Pillar.Choice pillar, Date customPillarDate) {
099    this(QuantLibJNI.new_FraRateHelper__SWIG_13(rate, monthsToStart, IborIndex.getCPtr(index), index, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
100  }
101
102  public FraRateHelper(double rate, long monthsToStart, IborIndex index, Pillar.Choice pillar) {
103    this(QuantLibJNI.new_FraRateHelper__SWIG_14(rate, monthsToStart, IborIndex.getCPtr(index), index, pillar.swigValue()), true);
104  }
105
106  public FraRateHelper(double rate, long monthsToStart, IborIndex index) {
107    this(QuantLibJNI.new_FraRateHelper__SWIG_15(rate, monthsToStart, IborIndex.getCPtr(index), index), true);
108  }
109
110  public FraRateHelper(QuoteHandle rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
111    this(QuantLibJNI.new_FraRateHelper__SWIG_16(QuoteHandle.getCPtr(rate), rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
112  }
113
114  public FraRateHelper(QuoteHandle rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate) {
115    this(QuantLibJNI.new_FraRateHelper__SWIG_17(QuoteHandle.getCPtr(rate), rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
116  }
117
118  public FraRateHelper(QuoteHandle rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex, Pillar.Choice pillar) {
119    this(QuantLibJNI.new_FraRateHelper__SWIG_18(QuoteHandle.getCPtr(rate), rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue()), true);
120  }
121
122  public FraRateHelper(QuoteHandle rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex) {
123    this(QuantLibJNI.new_FraRateHelper__SWIG_19(QuoteHandle.getCPtr(rate), rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex), true);
124  }
125
126  public FraRateHelper(double rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
127    this(QuantLibJNI.new_FraRateHelper__SWIG_20(rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
128  }
129
130  public FraRateHelper(double rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate) {
131    this(QuantLibJNI.new_FraRateHelper__SWIG_21(rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
132  }
133
134  public FraRateHelper(double rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex, Pillar.Choice pillar) {
135    this(QuantLibJNI.new_FraRateHelper__SWIG_22(rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue()), true);
136  }
137
138  public FraRateHelper(double rate, long immOffsetStart, long immOffsetEnd, IborIndex iborIndex) {
139    this(QuantLibJNI.new_FraRateHelper__SWIG_23(rate, immOffsetStart, immOffsetEnd, IborIndex.getCPtr(iborIndex), iborIndex), true);
140  }
141
142  public FraRateHelper(double rate, Period periodToStart, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
143    this(QuantLibJNI.new_FraRateHelper__SWIG_24(rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
144  }
145
146  public FraRateHelper(double rate, Period periodToStart, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate) {
147    this(QuantLibJNI.new_FraRateHelper__SWIG_25(rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
148  }
149
150  public FraRateHelper(double rate, Period periodToStart, IborIndex iborIndex, Pillar.Choice pillar) {
151    this(QuantLibJNI.new_FraRateHelper__SWIG_26(rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue()), true);
152  }
153
154  public FraRateHelper(double rate, Period periodToStart, IborIndex iborIndex) {
155    this(QuantLibJNI.new_FraRateHelper__SWIG_27(rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex), true);
156  }
157
158  public FraRateHelper(QuoteHandle rate, Period periodToStart, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate, boolean useIndexedCoupon) {
159    this(QuantLibJNI.new_FraRateHelper__SWIG_28(QuoteHandle.getCPtr(rate), rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate, useIndexedCoupon), true);
160  }
161
162  public FraRateHelper(QuoteHandle rate, Period periodToStart, IborIndex iborIndex, Pillar.Choice pillar, Date customPillarDate) {
163    this(QuantLibJNI.new_FraRateHelper__SWIG_29(QuoteHandle.getCPtr(rate), rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue(), Date.getCPtr(customPillarDate), customPillarDate), true);
164  }
165
166  public FraRateHelper(QuoteHandle rate, Period periodToStart, IborIndex iborIndex, Pillar.Choice pillar) {
167    this(QuantLibJNI.new_FraRateHelper__SWIG_30(QuoteHandle.getCPtr(rate), rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex, pillar.swigValue()), true);
168  }
169
170  public FraRateHelper(QuoteHandle rate, Period periodToStart, IborIndex iborIndex) {
171    this(QuantLibJNI.new_FraRateHelper__SWIG_31(QuoteHandle.getCPtr(rate), rate, Period.getCPtr(periodToStart), periodToStart, IborIndex.getCPtr(iborIndex), iborIndex), true);
172  }
173
174}