View Javadoc
1   package examples;
2   
3   import org.pojomatic.Pojomatic;
4   import org.pojomatic.annotations.AutoProperty;
5   
6   @AutoProperty //all fields are included by default
7   public class Common {
8     private boolean test;
9   
10    private String myString;
11  
12    private int anInt;
13  
14    @Override public int hashCode() {
15      return Pojomatic.hashCode(this);
16    }
17  
18    @Override public String toString() {
19      return Pojomatic.toString(this);
20    }
21  
22    @Override public boolean equals(Object o) {
23      return Pojomatic.equals(this, o);
24    }
25  
26    public boolean isTest() {
27      return this.test;
28    }
29  
30    public void setTest(boolean test) {
31      this.test = test;
32    }
33  
34    public String getMyString() {
35      return this.myString;
36    }
37  
38    public void setMyString(String myString) {
39      this.myString = myString;
40    }
41  
42    public int getAnInt() {
43      return this.anInt;
44    }
45  
46    public void setAnInt(int anInt) {
47      this.anInt = anInt;
48    }
49  
50  }