1 16 package org.jmanage.testapp.mbeans; 17 18 25 public class PrimitiveDataTypeTest implements PrimitiveDataTypeTestMBean{ 26 27 private int i=9; 28 private short s=9; 29 private long l=9999; 30 private float f=9.9f; 31 private double d=9999.999; 32 private char c='a'; 33 private boolean bo=true; 34 private boolean bo2=true; 35 private byte b=1; 36 37 38 public int getInt(){ 39 return i; 40 } 41 42 public void setInt(int i){ 43 this.i = i; 44 } 45 46 public short getShort(){ 47 return s; 48 } 49 50 public void setShort(short s){ 51 this.s = s; 52 } 53 54 public long getLong(){ 55 return l; 56 } 57 58 public void setLong(long l){ 59 this.l = l; 60 } 61 62 public float getFloat(){ 63 return f; 64 } 65 66 public void setFloat(float f){ 67 this.f = f; 68 } 69 70 public double getDouble(){ 71 return d; 72 } 73 74 public void setDouble(double d){ 75 this.d = d; 76 } 77 78 public char getChar(){ 79 return c; 80 } 81 82 public void setChar(char c){ 83 this.c = c; 84 } 85 86 public boolean getBoolean(){ 87 return bo; 88 } 89 90 public void setBoolean(boolean bo){ 91 this.bo = bo; 92 } 93 94 public boolean getBoolean2(){ 95 return bo2; 96 } 97 98 public void setBoolean2(boolean bo){ 99 this.bo2 = bo; 100 } 101 102 public byte getByte(){ 103 return b; 104 } 105 106 public void setByte(byte b){ 107 this.b = b; 108 } 109 110 } 111 | Popular Tags |