blob: 1d21071c93ac5386d87447bd91b65cac4980ab7a (
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
|
package org.zwobble.couscous.interpreter;
public final class UnboundField extends InterpreterException {
private static final long serialVersionUID = 1L;
private final String fieldName;
public UnboundField(final String fieldName) {
this.fieldName = fieldName;
}
public String getFieldName() {
return this.fieldName;
}
@java.lang.Override
public java.lang.String toString() {
return "UnboundField(fieldName=" + this.getFieldName() + ")";
}
@java.lang.Override
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof UnboundField)) return false;
final UnboundField other = (UnboundField)o;
if (!other.canEqual((java.lang.Object)this)) return false;
final java.lang.Object this$fieldName = this.getFieldName();
final java.lang.Object other$fieldName = other.getFieldName();
if (this$fieldName == null ? other$fieldName != null : !this$fieldName.equals(other$fieldName)) return false;
return true;
}
protected boolean canEqual(final java.lang.Object other) {
return other instanceof UnboundField;
}
@java.lang.Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $fieldName = this.getFieldName();
result = result * PRIME + ($fieldName == null ? 43 : $fieldName.hashCode());
return result;
}
}
|