/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.10
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.quantlib;

public class SpreadedLinearZeroInterpolatedTermStructure extends YieldTermStructure {
  private transient long swigCPtr;

  protected SpreadedLinearZeroInterpolatedTermStructure(long cPtr, boolean cMemoryOwn) {
    super(QuantLibJNI.SpreadedLinearZeroInterpolatedTermStructure_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(SpreadedLinearZeroInterpolatedTermStructure obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        QuantLibJNI.delete_SpreadedLinearZeroInterpolatedTermStructure(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public SpreadedLinearZeroInterpolatedTermStructure(YieldTermStructureHandle curveHandle, QuoteHandleVector spreadHandles, DateVector dates, Compounding comp, Frequency freq, DayCounter dc, Linear factory) {
    this(QuantLibJNI.new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_0(YieldTermStructureHandle.getCPtr(curveHandle), curveHandle, QuoteHandleVector.getCPtr(spreadHandles), spreadHandles, DateVector.getCPtr(dates), dates, comp.swigValue(), freq.swigValue(), DayCounter.getCPtr(dc), dc, Linear.getCPtr(factory), factory), true);
  }

  public SpreadedLinearZeroInterpolatedTermStructure(YieldTermStructureHandle curveHandle, QuoteHandleVector spreadHandles, DateVector dates, Compounding comp, Frequency freq, DayCounter dc) {
    this(QuantLibJNI.new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_1(YieldTermStructureHandle.getCPtr(curveHandle), curveHandle, QuoteHandleVector.getCPtr(spreadHandles), spreadHandles, DateVector.getCPtr(dates), dates, comp.swigValue(), freq.swigValue(), DayCounter.getCPtr(dc), dc), true);
  }

  public SpreadedLinearZeroInterpolatedTermStructure(YieldTermStructureHandle curveHandle, QuoteHandleVector spreadHandles, DateVector dates, Compounding comp, Frequency freq) {
    this(QuantLibJNI.new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_2(YieldTermStructureHandle.getCPtr(curveHandle), curveHandle, QuoteHandleVector.getCPtr(spreadHandles), spreadHandles, DateVector.getCPtr(dates), dates, comp.swigValue(), freq.swigValue()), true);
  }

  public SpreadedLinearZeroInterpolatedTermStructure(YieldTermStructureHandle curveHandle, QuoteHandleVector spreadHandles, DateVector dates, Compounding comp) {
    this(QuantLibJNI.new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_3(YieldTermStructureHandle.getCPtr(curveHandle), curveHandle, QuoteHandleVector.getCPtr(spreadHandles), spreadHandles, DateVector.getCPtr(dates), dates, comp.swigValue()), true);
  }

  public SpreadedLinearZeroInterpolatedTermStructure(YieldTermStructureHandle curveHandle, QuoteHandleVector spreadHandles, DateVector dates) {
    this(QuantLibJNI.new_SpreadedLinearZeroInterpolatedTermStructure__SWIG_4(YieldTermStructureHandle.getCPtr(curveHandle), curveHandle, QuoteHandleVector.getCPtr(spreadHandles), spreadHandles, DateVector.getCPtr(dates), dates), true);
  }

}
