Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Generated by delombok at Tue Dec 01 17:02:18 JST 2015
- // example
- // $ java -jar lombok.jar delombok -d Foo.java Data.java
- // The class was generated #equals(), #canEquals(), #hashCode()
- // and #toString()
- public class DataAnnotation {
- private final String name;
- public int foo;
- private int bar;
- @java.beans.ConstructorProperties({"name"})
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public DataAnnotation(final String name) {
- this.name = name;
- }
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public String getName() {
- return this.name;
- }
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public int getFoo() {
- return this.foo;
- }
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public int getBar() {
- return this.bar;
- }
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public void setFoo(final int foo) {
- this.foo = foo;
- }
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public void setBar(final int bar) {
- this.bar = bar;
- }
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public boolean equals(final java.lang.Object o) {
- if (o == this) return true;
- if (!(o instanceof DataAnnotation)) return false;
- final DataAnnotation other = (DataAnnotation)o;
- if (!other.canEqual((java.lang.Object)this)) return false;
- 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;
- if (this.getFoo() != other.getFoo()) return false;
- if (this.getBar() != other.getBar()) return false;
- return true;
- }
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- protected boolean canEqual(final java.lang.Object other) {
- return other instanceof DataAnnotation;
- }
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- 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());
- result = result * PRIME + this.getFoo();
- result = result * PRIME + this.getBar();
- return result;
- }
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public java.lang.String toString() {
- return "DataAnnotation(name=" + this.getName() + ", foo=" + this.getFoo() + ", bar=" + this.getBar() + ")";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement