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 CallabilitySchedule {
12
private long swigCPtr;
13
protected boolean swigCMemOwn;
15
protected CallabilitySchedule(long cPtr, boolean cMemoryOwn) {
16
swigCMemOwn = cMemoryOwn;
20
protected static long getCPtr(CallabilitySchedule 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_CallabilitySchedule(swigCPtr);
36
public CallabilitySchedule() {
37
this(QuantLibJNI.new_CallabilitySchedule__SWIG_0(), true);
40
public CallabilitySchedule(long n) {
41
this(QuantLibJNI.new_CallabilitySchedule__SWIG_1(n), true);
45
return QuantLibJNI.CallabilitySchedule_size(swigCPtr, this);
48
public long capacity() {
49
return QuantLibJNI.CallabilitySchedule_capacity(swigCPtr, this);
52
public void reserve(long n) {
53
QuantLibJNI.CallabilitySchedule_reserve(swigCPtr, this, n);
56
public boolean isEmpty() {
57
return QuantLibJNI.CallabilitySchedule_isEmpty(swigCPtr, this);
61
QuantLibJNI.CallabilitySchedule_clear(swigCPtr, this);
64
public void add(Callability x) {
65
QuantLibJNI.CallabilitySchedule_add(swigCPtr, this, Callability.getCPtr(x), x);
68
public Callability get(int i) {
69
return new Callability(QuantLibJNI.CallabilitySchedule_get(swigCPtr, this, i), false);
72
public void set(int i, Callability val) {
73
QuantLibJNI.CallabilitySchedule_set(swigCPtr, this, i, Callability.getCPtr(val), val);