View Javadoc
1   /*
2    * Copyright (C) 2003-2012 David E. Berry
3    *
4    * This library is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 2.1 of the License, or (at your option) any later version.
8    *
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this library; if not, write to the Free Software
16   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17   *
18   * A copy of the GNU Lesser General Public License may also be found at
19   * http://www.gnu.org/licenses/lgpl.txt
20   */
21  package org.synchronoss.cpo.meta.bean;
22  
23  public class CpoFunctionGroupBean implements java.io.Serializable {
24  
25    private static final long serialVersionUID = 1L;
26  
27    /*
28     * Properties
29     */
30    private java.lang.String name;
31    private java.lang.String type;
32    private java.lang.String description;
33  
34    public CpoFunctionGroupBean() {
35    }
36  
37    public String getDescription() {
38      return description;
39    }
40  
41    public void setDescription(String description) {
42      this.description = description;
43    }
44  
45    public String getName() {
46      return name;
47    }
48  
49    public void setName(String name) {
50      this.name = name;
51    }
52  
53    public String getType() {
54      return type;
55    }
56  
57    public void setType(String type) {
58      this.type = type;
59    }
60  
61    /*
62     * Getters and Setters
63     */
64    @Override
65    public boolean equals(Object o) {
66      if (this == o) {
67        return true;
68      }
69      if (o == null || getClass() != o.getClass()) {
70        return false;
71      }
72  
73      CpoFunctionGroupBean that = (CpoFunctionGroupBean) o;
74  
75      if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) {
76        return false;
77      }
78      if (getType() != null ? !getType().equals(that.getType()) : that.getType() != null) {
79        return false;
80      }
81      if (getDescription() != null ? !getDescription().equals(that.getDescription()) : that.getDescription() != null) {
82        return false;
83      }
84  
85      return true;
86    }
87  
88    @Override
89    public int hashCode() {
90      int result = 0;
91      result = 31 * result + getClass().getName().hashCode();
92      result = 31 * result + (getName() != null ? getName().hashCode() : 0);
93      result = 31 * result + (getType() != null ? getType().hashCode() : 0);
94      result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);
95      return result;
96    }
97  
98    @Override
99    public String toString() {
100     StringBuilder str = new StringBuilder();
101     str.append("name = " + getName() + "\n");
102     str.append("type = " + getType() + "\n");
103     str.append("description = " + getDescription() + "\n");
104     return str.toString();
105   }
106 }