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