1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */ 
17  
18  
19  package org.apache.commons.beanutils;
20  
21  
22  /***
23   * Plain old java bean (POJO) for microbenchmarks.
24   *
25   * @author Craig R. McClanahan
26   * @version $Revision: 438363 $ $Date: 2006-08-30 05:48:00 +0100 (Wed, 30 Aug 2006) $
27   */
28  
29  public class BenchBean {
30  
31  
32      // -------------------------------------------------------------- Properties
33  
34  
35      /***
36       * A boolean property.
37       */
38      private boolean booleanProperty = true;
39  
40      public boolean getBooleanProperty() {
41          return (booleanProperty);
42      }
43  
44      public void setBooleanProperty(boolean booleanProperty) {
45          this.booleanProperty = booleanProperty;
46      }
47  
48  
49      /***
50       * A byte property.
51       */
52      private byte byteProperty = (byte) 121;
53  
54      public byte getByteProperty() {
55          return (this.byteProperty);
56      }
57  
58      public void setByteProperty(byte byteProperty) {
59          this.byteProperty = byteProperty;
60      }
61  
62  
63      /***
64       * A double property.
65       */
66      private double doubleProperty = 321.0;
67  
68      public double getDoubleProperty() {
69          return (this.doubleProperty);
70      }
71  
72      public void setDoubleProperty(double doubleProperty) {
73          this.doubleProperty = doubleProperty;
74      }
75  
76  
77      /***
78       * A float property.
79       */
80      private float floatProperty = (float) 123.0;
81  
82      public float getFloatProperty() {
83          return (this.floatProperty);
84      }
85  
86      public void setFloatProperty(float floatProperty) {
87          this.floatProperty = floatProperty;
88      }
89  
90  
91      /***
92       * An integer property.
93       */
94      private int intProperty = 123;
95  
96      public int getIntProperty() {
97          return (this.intProperty);
98      }
99  
100     public void setIntProperty(int intProperty) {
101         this.intProperty = intProperty;
102     }
103 
104 
105     /***
106      * A long property.
107      */
108     private long longProperty = 321;
109 
110     public long getLongProperty() {
111         return (this.longProperty);
112     }
113 
114     public void setLongProperty(long longProperty) {
115         this.longProperty = longProperty;
116     }
117 
118 
119     /***
120      * A short property.
121      */
122     private short shortProperty = (short) 987;
123 
124     public short getShortProperty() {
125         return (this.shortProperty);
126     }
127 
128     public void setShortProperty(short shortProperty) {
129         this.shortProperty = shortProperty;
130     }
131 
132 
133     /***
134      * A String property.
135      */
136     private String stringProperty = "This is a string";
137 
138     public String getStringProperty() {
139         return (this.stringProperty);
140     }
141 
142     public void setStringProperty(String stringProperty) {
143         this.stringProperty = stringProperty;
144     }
145 
146 
147 }