aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-10-25 19:18:09 +0000
committerMichael Williamson <mike@zwobble.org>2015-10-25 19:34:44 +0000
commit368f2dd010defaf5f4b6deb70f45285cee8f244d (patch)
tree55494f85341f23dd1e588fa070ef863ef7cfdef5 /src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java
parent060ae04a695df6abac7445df3c5394b59da40f41 (diff)
Remove lombok
Diffstat (limited to 'src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java')
-rw-r--r--src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java52
1 files changed, 46 insertions, 6 deletions
diff --git a/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java b/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java
index d778144..4ee1c95 100644
--- a/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java
+++ b/src/main/java/org/zwobble/couscous/interpreter/values/FieldValue.java
@@ -2,10 +2,50 @@ package org.zwobble.couscous.interpreter.values;
import org.zwobble.couscous.ast.TypeName;
-import lombok.Value;
+public final class FieldValue {
+ private final String name;
+ private final TypeName type;
-@Value
-public class FieldValue {
- String name;
- 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() + ")";
+ }
+} \ No newline at end of file