blob: 4ee1c956138a1eda586d0b276ffc5c1c633afe95 (
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
|
package org.zwobble.couscous.interpreter.values;
import org.zwobble.couscous.ast.TypeName;
public final class FieldValue {
private final String name;
private final TypeName type;
public FieldValue(final String name, final TypeName type) {
this.name = name;
this.type = type;
}
public String getName() {
return this.name;
}
public TypeName getType() {
return this.type;
}
@java.lang.Override
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof FieldValue)) return false;
final FieldValue other = (FieldValue)o;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final java.lang.Object this$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
return result;
}
@java.lang.Override
public java.lang.String toString() {
return "FieldValue(name=" + this.getName() + ", type=" + this.getType() + ")";
}
}
|