~ubuntu-branches/ubuntu/vivid/quantlib-swig/vivid

« back to all changes in this revision

Viewing changes to Java/org/quantlib/FixedRateCoupon.java

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-12-03 17:01:53 UTC
  • mfrom: (1.1.9 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091203170153-x5yrwybjsl2q11vw
* New upstream release

* debian/control: Updated Standards-Version: to current value

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ----------------------------------------------------------------------------
2
2
 * This file was automatically generated by SWIG (http://www.swig.org).
3
 
 * Version 1.3.36
 
3
 * Version 1.3.40
4
4
 *
5
5
 * Do not make changes to this file unless you know what you are doing--modify
6
6
 * the SWIG interface file instead.
25
25
  }
26
26
 
27
27
  public synchronized void delete() {
28
 
    if(swigCPtr != 0 && swigCMemOwn) {
29
 
      swigCMemOwn = false;
30
 
      QuantLibJNI.delete_FixedRateCoupon(swigCPtr);
 
28
    if (swigCPtr != 0) {
 
29
      if (swigCMemOwn) {
 
30
        swigCMemOwn = false;
 
31
        QuantLibJNI.delete_FixedRateCoupon(swigCPtr);
 
32
      }
 
33
      swigCPtr = 0;
31
34
    }
32
 
    swigCPtr = 0;
33
35
    super.delete();
34
36
  }
35
37
 
36
 
  public FixedRateCoupon(double nominal, Date paymentDate, double rate, DayCounter dayCounter, Date startDate, Date endDate, Date refPeriodStart, Date refPeriodEnd) {
37
 
    this(QuantLibJNI.new_FixedRateCoupon__SWIG_0(nominal, Date.getCPtr(paymentDate), paymentDate, rate, DayCounter.getCPtr(dayCounter), dayCounter, Date.getCPtr(startDate), startDate, Date.getCPtr(endDate), endDate, Date.getCPtr(refPeriodStart), refPeriodStart, Date.getCPtr(refPeriodEnd), refPeriodEnd), true);
38
 
  }
39
 
 
40
 
  public FixedRateCoupon(double nominal, Date paymentDate, double rate, DayCounter dayCounter, Date startDate, Date endDate, Date refPeriodStart) {
41
 
    this(QuantLibJNI.new_FixedRateCoupon__SWIG_1(nominal, Date.getCPtr(paymentDate), paymentDate, rate, DayCounter.getCPtr(dayCounter), dayCounter, Date.getCPtr(startDate), startDate, Date.getCPtr(endDate), endDate, Date.getCPtr(refPeriodStart), refPeriodStart), true);
42
 
  }
43
 
 
44
 
  public FixedRateCoupon(double nominal, Date paymentDate, double rate, DayCounter dayCounter, Date startDate, Date endDate) {
45
 
    this(QuantLibJNI.new_FixedRateCoupon__SWIG_2(nominal, Date.getCPtr(paymentDate), paymentDate, rate, DayCounter.getCPtr(dayCounter), dayCounter, Date.getCPtr(startDate), startDate, Date.getCPtr(endDate), endDate), true);
 
38
  public FixedRateCoupon(Date paymentDate, double nominal, double rate, DayCounter dayCounter, Date startDate, Date endDate, Date refPeriodStart, Date refPeriodEnd) {
 
39
    this(QuantLibJNI.new_FixedRateCoupon__SWIG_0(Date.getCPtr(paymentDate), paymentDate, nominal, rate, DayCounter.getCPtr(dayCounter), dayCounter, Date.getCPtr(startDate), startDate, Date.getCPtr(endDate), endDate, Date.getCPtr(refPeriodStart), refPeriodStart, Date.getCPtr(refPeriodEnd), refPeriodEnd), true);
 
40
  }
 
41
 
 
42
  public FixedRateCoupon(Date paymentDate, double nominal, double rate, DayCounter dayCounter, Date startDate, Date endDate, Date refPeriodStart) {
 
43
    this(QuantLibJNI.new_FixedRateCoupon__SWIG_1(Date.getCPtr(paymentDate), paymentDate, nominal, rate, DayCounter.getCPtr(dayCounter), dayCounter, Date.getCPtr(startDate), startDate, Date.getCPtr(endDate), endDate, Date.getCPtr(refPeriodStart), refPeriodStart), true);
 
44
  }
 
45
 
 
46
  public FixedRateCoupon(Date paymentDate, double nominal, double rate, DayCounter dayCounter, Date startDate, Date endDate) {
 
47
    this(QuantLibJNI.new_FixedRateCoupon__SWIG_2(Date.getCPtr(paymentDate), paymentDate, nominal, rate, DayCounter.getCPtr(dayCounter), dayCounter, Date.getCPtr(startDate), startDate, Date.getCPtr(endDate), endDate), true);
46
48
  }
47
49
 
48
50
}