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
26
27
28 private java.lang.String name;
29 private java.lang.String type;
30 private java.lang.String description;
31
32 public CpoFunctionGroupBean() {
33 }
34
35 public String getDescription() {
36 return description;
37 }
38
39 public void setDescription(String description) {
40 this.description = description;
41 }
42
43 public String getName() {
44 return name;
45 }
46
47 public void setName(String name) {
48 this.name = name;
49 }
50
51 public String getType() {
52 return type;
53 }
54
55 public void setType(String type) {
56 this.type = type;
57 }
58
59
60
61
62 @Override
63 public boolean equals(Object o) {
64 if (this == o) {
65 return true;
66 }
67 if (o == null || getClass() != o.getClass()) {
68 return false;
69 }
70
71 CpoFunctionGroupBean that = (CpoFunctionGroupBean) o;
72
73 if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) {
74 return false;
75 }
76 if (getType() != null ? !getType().equals(that.getType()) : that.getType() != null) {
77 return false;
78 }
79 if (getDescription() != null ? !getDescription().equals(that.getDescription()) : that.getDescription() != null) {
80 return false;
81 }
82
83 return true;
84 }
85
86 @Override
87 public int hashCode() {
88 int result = 0;
89 result = 31 * result + getClass().getName().hashCode();
90 result = 31 * result + (getName() != null ? getName().hashCode() : 0);
91 result = 31 * result + (getType() != null ? getType().hashCode() : 0);
92 result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);
93 return result;
94 }
95
96 @Override
97 public String toString() {
98 StringBuilder str = new StringBuilder();
99 str.append("name = " + getName() + "\n");
100 str.append("type = " + getType() + "\n");
101 str.append("description = " + getDescription() + "\n");
102 return str.toString();
103 }
104 }