blob: ee7c52963375278bea654ba2eb019e9cef34a43f (
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
|
public class NullLibrary3 {
@jakarta.annotation.Nonnull
String foo;
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(@jakarta.annotation.Nullable final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof NullLibrary3)) return false;
final NullLibrary3 other = (NullLibrary3) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$foo = this.foo;
final java.lang.Object other$foo = other.foo;
if (this$foo == null ? other$foo != null : !this$foo.equals(other$foo)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(@jakarta.annotation.Nullable final java.lang.Object other) {
return other instanceof NullLibrary3;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $foo = this.foo;
result = result * PRIME + ($foo == null ? 43 : $foo.hashCode());
return result;
}
@jakarta.annotation.Nonnull
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "NullLibrary3(foo=" + this.foo + ")";
}
@java.lang.SuppressWarnings("all")
public NullLibrary3(@jakarta.annotation.Nonnull final String foo) {
if (foo == null) {
throw new java.lang.NullPointerException("foo is marked non-null but is null");
}
this.foo = foo;
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@jakarta.annotation.Nonnull
@java.lang.SuppressWarnings("all")
public NullLibrary3 withFoo(@jakarta.annotation.Nonnull final String foo) {
if (foo == null) {
throw new java.lang.NullPointerException("foo is marked non-null but is null");
}
return this.foo == foo ? this : new NullLibrary3(foo);
}
}
|