|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| package org.qedeq.kernel.dto.module; |
|
19 |
| |
|
20 |
| import org.qedeq.kernel.base.list.Element; |
|
21 |
| import org.qedeq.kernel.base.module.Formula; |
|
22 |
| import org.qedeq.kernel.utility.EqualsUtility; |
|
23 |
| |
|
24 |
| |
|
25 |
| |
|
26 |
| |
|
27 |
| |
|
28 |
| |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| public final class FormulaVo implements Formula { |
|
33 |
| |
|
34 |
| |
|
35 |
| private Element element; |
|
36 |
| |
|
37 |
| |
|
38 |
| |
|
39 |
| |
|
40 |
| |
|
41 |
| |
|
42 |
276
| public FormulaVo(final Element element) {
|
|
43 |
276
| this.element = element;
|
|
44 |
| } |
|
45 |
| |
|
46 |
| |
|
47 |
| |
|
48 |
| |
|
49 |
419
| public FormulaVo() {
|
|
50 |
| |
|
51 |
| } |
|
52 |
| |
|
53 |
| |
|
54 |
| |
|
55 |
| |
|
56 |
| |
|
57 |
| |
|
58 |
411
| public final void setElement(final Element element) {
|
|
59 |
411
| this.element = element;
|
|
60 |
| } |
|
61 |
| |
|
62 |
2591
| public final Element getElement() {
|
|
63 |
2591
| return element;
|
|
64 |
| } |
|
65 |
| |
|
66 |
271
| public boolean equals(final Object obj) {
|
|
67 |
271
| if (!(obj instanceof FormulaVo)) {
|
|
68 |
11
| return false;
|
|
69 |
| } |
|
70 |
260
| final FormulaVo other = (FormulaVo) obj;
|
|
71 |
260
| return EqualsUtility.equals(getElement(), other.getElement());
|
|
72 |
| } |
|
73 |
| |
|
74 |
259
| public int hashCode() {
|
|
75 |
259
| return (getElement() != null ? getElement().hashCode() : 0);
|
|
76 |
| } |
|
77 |
| |
|
78 |
182
| public String toString() {
|
|
79 |
182
| if (getElement() != null) {
|
|
80 |
170
| return getElement().toString();
|
|
81 |
| } |
|
82 |
12
| return "";
|
|
83 |
| } |
|
84 |
| |
|
85 |
| } |