blob: ad3fb6e2e2f5811f00a6359ab6e7ddf814d6cfcc [file] [log] [blame]
Alexandre Lision5d3d1962014-04-11 15:53:46 -04001/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 2.0.11
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
9package org.sflphone.service;
10
11public class IntegerMap {
12 private long swigCPtr;
13 protected boolean swigCMemOwn;
14
15 protected IntegerMap(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
17 swigCPtr = cPtr;
18 }
19
20 protected static long getCPtr(IntegerMap 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) {
30 if (swigCMemOwn) {
31 swigCMemOwn = false;
32 SFLPhoneserviceJNI.delete_IntegerMap(swigCPtr);
33 }
34 swigCPtr = 0;
35 }
36 }
37
38 public IntegerMap() {
39 this(SFLPhoneserviceJNI.new_IntegerMap__SWIG_0(), true);
40 }
41
42 public IntegerMap(IntegerMap arg0) {
43 this(SFLPhoneserviceJNI.new_IntegerMap__SWIG_1(IntegerMap.getCPtr(arg0), arg0), true);
44 }
45
46 public long size() {
47 return SFLPhoneserviceJNI.IntegerMap_size(swigCPtr, this);
48 }
49
50 public boolean empty() {
51 return SFLPhoneserviceJNI.IntegerMap_empty(swigCPtr, this);
52 }
53
54 public void clear() {
55 SFLPhoneserviceJNI.IntegerMap_clear(swigCPtr, this);
56 }
57
58 public int get(String key) {
59 return SFLPhoneserviceJNI.IntegerMap_get(swigCPtr, this, key);
60 }
61
62 public void set(String key, int x) {
63 SFLPhoneserviceJNI.IntegerMap_set(swigCPtr, this, key, x);
64 }
65
66 public void del(String key) {
67 SFLPhoneserviceJNI.IntegerMap_del(swigCPtr, this, key);
68 }
69
70 public boolean has_key(String key) {
71 return SFLPhoneserviceJNI.IntegerMap_has_key(swigCPtr, this, key);
72 }
73
74}