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 CpoArgumentBean implements java.io.Serializable {
24
25
26
27
28 private java.lang.String attributeName;
29 private java.lang.String description;
30
31 public CpoArgumentBean() {
32 }
33
34 public String getAttributeName() {
35 return attributeName;
36 }
37
38 public void setAttributeName(String attributeName) {
39 this.attributeName = attributeName;
40 }
41
42 public String getDescription() {
43 return description;
44 }
45
46 public void setDescription(String description) {
47 this.description = description;
48 }
49
50
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 CpoArgumentBean that = (CpoArgumentBean) o;
63
64 if (getAttributeName() != null ? !getAttributeName().equals(that.getAttributeName()) : that.getAttributeName() != 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 + (getAttributeName() != null ? getAttributeName().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("attributeName = " + getAttributeName() + "\n");
87 str.append("description = " + getDescription() + "\n");
88 return str.toString();
89 }
90 }