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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2007-12-26 08:10:08 UTC
  • mfrom: (1.1.6 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20071226081008-cjq979mvtxydli4r
New upstream release 0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.33
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
package org.quantlib;
 
10
 
 
11
public class CallabilitySchedule {
 
12
  private long swigCPtr;
 
13
  protected boolean swigCMemOwn;
 
14
 
 
15
  protected CallabilitySchedule(long cPtr, boolean cMemoryOwn) {
 
16
    swigCMemOwn = cMemoryOwn;
 
17
    swigCPtr = cPtr;
 
18
  }
 
19
 
 
20
  protected static long getCPtr(CallabilitySchedule obj) {
 
21
    return (obj == null) ? 0 : obj.swigCPtr;
 
22
  }
 
23
 
 
24
  protected void finalize() {
 
25
    delete();
 
26
  }
 
27
 
 
28
  public synchronized void delete() {
 
29
    if(swigCPtr != 0 && swigCMemOwn) {
 
30
      swigCMemOwn = false;
 
31
      QuantLibJNI.delete_CallabilitySchedule(swigCPtr);
 
32
    }
 
33
    swigCPtr = 0;
 
34
  }
 
35
 
 
36
  public CallabilitySchedule() {
 
37
    this(QuantLibJNI.new_CallabilitySchedule__SWIG_0(), true);
 
38
  }
 
39
 
 
40
  public CallabilitySchedule(long n) {
 
41
    this(QuantLibJNI.new_CallabilitySchedule__SWIG_1(n), true);
 
42
  }
 
43
 
 
44
  public long size() {
 
45
    return QuantLibJNI.CallabilitySchedule_size(swigCPtr, this);
 
46
  }
 
47
 
 
48
  public long capacity() {
 
49
    return QuantLibJNI.CallabilitySchedule_capacity(swigCPtr, this);
 
50
  }
 
51
 
 
52
  public void reserve(long n) {
 
53
    QuantLibJNI.CallabilitySchedule_reserve(swigCPtr, this, n);
 
54
  }
 
55
 
 
56
  public boolean isEmpty() {
 
57
    return QuantLibJNI.CallabilitySchedule_isEmpty(swigCPtr, this);
 
58
  }
 
59
 
 
60
  public void clear() {
 
61
    QuantLibJNI.CallabilitySchedule_clear(swigCPtr, this);
 
62
  }
 
63
 
 
64
  public void add(Callability x) {
 
65
    QuantLibJNI.CallabilitySchedule_add(swigCPtr, this, Callability.getCPtr(x), x);
 
66
  }
 
67
 
 
68
  public Callability get(int i) {
 
69
    return new Callability(QuantLibJNI.CallabilitySchedule_get(swigCPtr, this, i), false);
 
70
  }
 
71
 
 
72
  public void set(int i, Callability val) {
 
73
    QuantLibJNI.CallabilitySchedule_set(swigCPtr, this, i, Callability.getCPtr(val), val);
 
74
  }
 
75
 
 
76
}