1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
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
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 }