1   /*
2    * Copyright 2002-2009 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package net.sf.json.sample;
18  
19  import org.apache.commons.lang.builder.ToStringBuilder;
20  import org.apache.commons.lang.builder.ToStringStyle;
21  
22  /**
23   * @author Andres Almiray <aalmiray@users.sourceforge.net>
24   */
25  public class NumberArrayBean {
26     private byte[] bytes;
27     private double[] doubles;
28     private float[] floats;
29     private int[] ints;
30     private long[] longs;
31     private short[] shorts;
32  
33     public byte[] getBytes() {
34        return bytes;
35     }
36  
37     public double[] getDoubles() {
38        return doubles;
39     }
40  
41     public float[] getFloats() {
42        return floats;
43     }
44  
45     public int[] getInts() {
46        return ints;
47     }
48  
49     public long[] getLongs() {
50        return longs;
51     }
52  
53     public short[] getShorts() {
54        return shorts;
55     }
56  
57     public void setBytes( byte[] bytes ) {
58        this.bytes = bytes;
59     }
60  
61     public void setDoubles( double[] doubles ) {
62        this.doubles = doubles;
63     }
64  
65     public void setFloats( float[] floats ) {
66        this.floats = floats;
67     }
68  
69     public void setInts( int[] ints ) {
70        this.ints = ints;
71     }
72  
73     public void setLongs( long[] longs ) {
74        this.longs = longs;
75     }
76  
77     public void setShorts( short[] shorts ) {
78        this.shorts = shorts;
79     }
80  
81     public String toString() {
82        return ToStringBuilder.reflectionToString( this, ToStringStyle.MULTI_LINE_STYLE );
83     }
84  }