1 16 package org.jmanage.testapp.mbeans; 17 18 import java.util.Date ; 19 20 26 public class DataTypeTest implements DataTypeTestMBean { 27 28 private Integer i=new Integer (9); 29 private Short s=new Short ((short)9); 30 private Long l=new Long (9999); 31 private Float f=new Float (9.9f); 32 private Double d=new Double (9999.999); 33 private Character c=new Character ('a'); 34 private Boolean bo=new Boolean (true); 35 private Byte b=new Byte ((byte)1); 36 private Date dt=new Date (); 37 private String [] strArray = new String []{"abc", "xyz", "efg"}; 38 private int[] intArray = new int[]{1,2,3,4}; 39 40 public Integer getInteger(){ 41 return i; 42 } 43 44 public void setInteger(Integer i){ 45 this.i = i; 46 } 47 48 public Short getShort(){ 49 return s; 50 } 51 52 public void setShort(Short s){ 53 this.s = s; 54 } 55 56 public Long getLong(){ 57 return l; 58 } 59 60 public void setLong(Long l){ 61 this.l = l; 62 } 63 64 public Float getFloat(){ 65 return f; 66 } 67 68 public void setFloat(Float f){ 69 this.f = f; 70 } 71 72 public Double getDouble(){ 73 return d; 74 } 75 public void setDouble(Double d){ 76 this.d = d; 77 } 78 79 public Character getCharacter(){ 80 return c; 81 } 82 83 public void setCharacter(Character c){ 84 this.c = c; 85 } 86 87 public Boolean getBoolean(){ 88 return bo; 89 } 90 91 public void setBoolean(Boolean bo){ 92 this.bo = bo; 93 } 94 95 public Byte getByte(){ 96 return b; 97 } 98 99 public void setByte(Byte b){ 100 this.b = b; 101 } 102 103 public Date getDate(){ 104 return dt; 105 } 106 107 public void setDate(Date dt){ 108 this.dt = dt; 109 } 110 111 public String [] getStringArray(){ 112 return strArray; 113 } 114 115 public void setStringArray(String [] strArray){ 116 this.strArray = strArray; 117 } 118 119 public String [] stringArrayOperation(){ 120 return strArray; 121 } 122 123 public int[] getIntArray(){ 124 return intArray; 125 } 126 127 public void setIntArray(int[] intArray){ 128 this.intArray = intArray; 129 } 130 131 public int[] intArrayOperation(){ 132 return intArray; 133 } 134 } 135 | Popular Tags |