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 CpoFunctionBean implements java.io.Serializable {
24
25
26
27
28 private java.lang.String name;
29 private java.lang.String expression;
30 private java.lang.String description;
31
32 public CpoFunctionBean() {
33 }
34
35 public String getName() {
36 return name;
37 }
38
39 public void setName(String name) {
40 this.name = name;
41 }
42
43 public String getDescription() {
44 return description;
45 }
46
47 public void setDescription(String description) {
48 this.description = description;
49 }
50
51 public String getExpression() {
52 return expression;
53 }
54
55 public void setExpression(String expression) {
56 this.expression = expression;
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 CpoFunctionBean that = (CpoFunctionBean) o;
72
73 if (getExpression() != null ? !getExpression().equals(that.getExpression()) : that.getExpression() != null) {
74 return false;
75 }
76 if (getDescription() != null ? !getDescription().equals(that.getDescription()) : that.getDescription() != null) {
77 return false;
78 }
79
80 return true;
81 }
82
83 @Override
84 public int hashCode() {
85 int result = 0;
86 result = 31 * result + getClass().getName().hashCode();
87 result = 31 * result + (getExpression() != null ? getExpression().hashCode() : 0);
88 result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);
89 return result;
90 }
91
92 @Override
93 public String toString() {
94 StringBuilder str = new StringBuilder();
95 str.append("expression = " + getExpression() + "\n");
96 str.append("description = " + getDescription() + "\n");
97 return str.toString();
98 }
99 }