Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. // Generated by delombok at Tue Dec 01 17:02:18 JST 2015
  2. // example
  3. // $ java -jar lombok.jar delombok -d Foo.java Data.java
  4. // The class was generated #equals(), #canEquals(), #hashCode()
  5. // and #toString()
  6.  
  7. public class DataAnnotation {
  8. private final String name;
  9. public int foo;
  10. private int bar;
  11.  
  12. @java.beans.ConstructorProperties({"name"})
  13. @java.lang.SuppressWarnings("all")
  14. @javax.annotation.Generated("lombok")
  15. public DataAnnotation(final String name) {
  16. this.name = name;
  17. }
  18.  
  19. @java.lang.SuppressWarnings("all")
  20. @javax.annotation.Generated("lombok")
  21. public String getName() {
  22. return this.name;
  23. }
  24.  
  25. @java.lang.SuppressWarnings("all")
  26. @javax.annotation.Generated("lombok")
  27. public int getFoo() {
  28. return this.foo;
  29. }
  30.  
  31. @java.lang.SuppressWarnings("all")
  32. @javax.annotation.Generated("lombok")
  33. public int getBar() {
  34. return this.bar;
  35. }
  36.  
  37. @java.lang.SuppressWarnings("all")
  38. @javax.annotation.Generated("lombok")
  39. public void setFoo(final int foo) {
  40. this.foo = foo;
  41. }
  42.  
  43. @java.lang.SuppressWarnings("all")
  44. @javax.annotation.Generated("lombok")
  45. public void setBar(final int bar) {
  46. this.bar = bar;
  47. }
  48.  
  49. @java.lang.Override
  50. @java.lang.SuppressWarnings("all")
  51. @javax.annotation.Generated("lombok")
  52. public boolean equals(final java.lang.Object o) {
  53. if (o == this) return true;
  54. if (!(o instanceof DataAnnotation)) return false;
  55. final DataAnnotation other = (DataAnnotation)o;
  56. if (!other.canEqual((java.lang.Object)this)) return false;
  57. final java.lang.Object this$name = this.getName();
  58. final java.lang.Object other$name = other.getName();
  59. if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
  60. if (this.getFoo() != other.getFoo()) return false;
  61. if (this.getBar() != other.getBar()) return false;
  62. return true;
  63. }
  64.  
  65. @java.lang.SuppressWarnings("all")
  66. @javax.annotation.Generated("lombok")
  67. protected boolean canEqual(final java.lang.Object other) {
  68. return other instanceof DataAnnotation;
  69. }
  70.  
  71. @java.lang.Override
  72. @java.lang.SuppressWarnings("all")
  73. @javax.annotation.Generated("lombok")
  74. public int hashCode() {
  75. final int PRIME = 59;
  76. int result = 1;
  77. final java.lang.Object $name = this.getName();
  78. result = result * PRIME + ($name == null ? 43 : $name.hashCode());
  79. result = result * PRIME + this.getFoo();
  80. result = result * PRIME + this.getBar();
  81. return result;
  82. }
  83.  
  84. @java.lang.Override
  85. @java.lang.SuppressWarnings("all")
  86. @javax.annotation.Generated("lombok")
  87. public java.lang.String toString() {
  88. return "DataAnnotation(name=" + this.getName() + ", foo=" + this.getFoo() + ", bar=" + this.getBar() + ")";
  89. }
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement