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 DividendSchedule {
12
private long swigCPtr;
13
protected boolean swigCMemOwn;
15
protected DividendSchedule(long cPtr, boolean cMemoryOwn) {
16
swigCMemOwn = cMemoryOwn;
20
protected static long getCPtr(DividendSchedule 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_DividendSchedule(swigCPtr);
36
public DividendSchedule() {
37
this(QuantLibJNI.new_DividendSchedule__SWIG_0(), true);
40
public DividendSchedule(long n) {
41
this(QuantLibJNI.new_DividendSchedule__SWIG_1(n), true);
45
return QuantLibJNI.DividendSchedule_size(swigCPtr, this);
48
public long capacity() {
49
return QuantLibJNI.DividendSchedule_capacity(swigCPtr, this);
52
public void reserve(long n) {
53
QuantLibJNI.DividendSchedule_reserve(swigCPtr, this, n);
56
public boolean isEmpty() {
57
return QuantLibJNI.DividendSchedule_isEmpty(swigCPtr, this);
61
QuantLibJNI.DividendSchedule_clear(swigCPtr, this);
64
public void add(Dividend x) {
65
QuantLibJNI.DividendSchedule_add(swigCPtr, this, Dividend.getCPtr(x), x);
68
public Dividend get(int i) {
69
return new Dividend(QuantLibJNI.DividendSchedule_get(swigCPtr, this, i), false);
72
public void set(int i, Dividend val) {
73
QuantLibJNI.DividendSchedule_set(swigCPtr, this, i, Dividend.getCPtr(val), val);