1
2 package org.projectlombok.test;
3
4
5 import javax.validation.constraints.NotNull;
6
7 public class NullDataExample {
8
9 @NotNull
10 private String dataOne;
11 @NotNull
12 private String dataTwo;
13
14 @java.lang.SuppressWarnings("all")
15 public NullDataExample() {
16 }
17
18 @java.lang.SuppressWarnings("all")
19 public String getDataOne() {
20 return this.dataOne;
21 }
22
23 @java.lang.SuppressWarnings("all")
24 public String getDataTwo() {
25 return this.dataTwo;
26 }
27
28 @java.lang.SuppressWarnings("all")
29 public void setDataOne(final String dataOne) {
30 this.dataOne = dataOne;
31 }
32
33 @java.lang.SuppressWarnings("all")
34 public void setDataTwo(final String dataTwo) {
35 this.dataTwo = dataTwo;
36 }
37
38 @java.lang.Override
39 @java.lang.SuppressWarnings("all")
40 public boolean equals(final java.lang.Object o) {
41 if (o == this) return true;
42 if (!(o instanceof NullDataExample)) return false;
43 final NullDataExample/org/projectlombok/test/NullDataExample.html#NullDataExample">NullDataExample other = (NullDataExample) o;
44 if (!other.canEqual((java.lang.Object) this)) return false;
45 final java.lang.Object this$dataOne = this.getDataOne();
46 final java.lang.Object other$dataOne = other.getDataOne();
47 if (this$dataOne == null ? other$dataOne != null : !this$dataOne.equals(other$dataOne)) return false;
48 final java.lang.Object this$dataTwo = this.getDataTwo();
49 final java.lang.Object other$dataTwo = other.getDataTwo();
50 if (this$dataTwo == null ? other$dataTwo != null : !this$dataTwo.equals(other$dataTwo)) return false;
51 return true;
52 }
53
54 @java.lang.SuppressWarnings("all")
55 protected boolean canEqual(final java.lang.Object other) {
56 return other instanceof NullDataExample;
57 }
58
59 @java.lang.Override
60 @java.lang.SuppressWarnings("all")
61 public int hashCode() {
62 final int PRIME = 59;
63 int result = 1;
64 final java.lang.Object $dataOne = this.getDataOne();
65 result = result * PRIME + ($dataOne == null ? 43 : $dataOne.hashCode());
66 final java.lang.Object $dataTwo = this.getDataTwo();
67 result = result * PRIME + ($dataTwo == null ? 43 : $dataTwo.hashCode());
68 return result;
69 }
70
71 @java.lang.Override
72 @java.lang.SuppressWarnings("all")
73 public java.lang.String toString() {
74 return "NullDataExample(dataOne=" + this.getDataOne() + ", dataTwo=" + this.getDataTwo() + ")";
75 }
76 }