blob: bdd7921a65908db51b0d2aea77fd679a7862f684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
// skip-idempotent
//version 8:
class CheckerFrameworkBasic {
private final int x;
private final int y;
private int z;
@org.checkerframework.dataflow.qual.Pure
@java.lang.SuppressWarnings("all")
public int getX() {
return this.x;
}
@org.checkerframework.dataflow.qual.Pure
@java.lang.SuppressWarnings("all")
public int getY() {
return this.y;
}
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.SuppressWarnings("all")
public int getZ() {
return this.z;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public @org.checkerframework.common.returnsreceiver.qual.This CheckerFrameworkBasic setZ(final int z) {
this.z = z;
return this;
}
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof CheckerFrameworkBasic)) return false;
final CheckerFrameworkBasic other = (CheckerFrameworkBasic) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (this.getX() != other.getX()) return false;
if (this.getY() != other.getY()) return false;
if (this.getZ() != other.getZ()) return false;
return true;
}
@org.checkerframework.dataflow.qual.Pure
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof CheckerFrameworkBasic;
}
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + this.getX();
result = result * PRIME + this.getY();
result = result * PRIME + this.getZ();
return result;
}
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "CheckerFrameworkBasic(x=" + this.getX() + ", y=" + this.getY() + ", z=" + this.getZ() + ")";
}
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBasic(final int x, final int y, final int z) {
this.x = x;
this.y = y;
this.z = z;
}
/**
* @return {@code this}.
*/
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBasic withX(final int x) {
return this.x == x ? this : new CheckerFrameworkBasic(x, this.y, this.z);
}
}
|