Expression.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. package com.usky.rule.vo;
  2. import com.fasterxml.jackson.annotation.JsonProperty;
  3. public class Expression {
  4. @JsonProperty("X")
  5. private String x;
  6. @JsonProperty("M")
  7. private String m;
  8. @JsonProperty("Y")
  9. private String y;
  10. public Expression() {
  11. }
  12. public String getX() {
  13. return this.x;
  14. }
  15. public String getM() {
  16. return this.m;
  17. }
  18. public String getY() {
  19. return this.y;
  20. }
  21. @JsonProperty("X")
  22. public void setX(final String x) {
  23. this.x = x;
  24. }
  25. @JsonProperty("M")
  26. public void setM(final String m) {
  27. this.m = m;
  28. }
  29. @JsonProperty("Y")
  30. public void setY(final String y) {
  31. this.y = y;
  32. }
  33. public boolean equals(final Object o) {
  34. if (o == this) {
  35. return true;
  36. } else if (!(o instanceof Expression)) {
  37. return false;
  38. } else {
  39. Expression other = (Expression)o;
  40. if (!other.canEqual(this)) {
  41. return false;
  42. } else {
  43. Object this$x = this.getX();
  44. Object other$x = other.getX();
  45. if (this$x == null) {
  46. if (other$x != null) {
  47. return false;
  48. }
  49. } else if (!this$x.equals(other$x)) {
  50. return false;
  51. }
  52. Object this$m = this.getM();
  53. Object other$m = other.getM();
  54. if (this$m == null) {
  55. if (other$m != null) {
  56. return false;
  57. }
  58. } else if (!this$m.equals(other$m)) {
  59. return false;
  60. }
  61. Object this$y = this.getY();
  62. Object other$y = other.getY();
  63. if (this$y == null) {
  64. if (other$y != null) {
  65. return false;
  66. }
  67. } else if (!this$y.equals(other$y)) {
  68. return false;
  69. }
  70. return true;
  71. }
  72. }
  73. }
  74. protected boolean canEqual(final Object other) {
  75. return other instanceof Expression;
  76. }
  77. public int hashCode() {
  78. int PRIME = 59;
  79. int result = 1;
  80. Object $x = this.getX();
  81. result = result * 59 + ($x == null ? 43 : $x.hashCode());
  82. Object $m = this.getM();
  83. result = result * 59 + ($m == null ? 43 : $m.hashCode());
  84. Object $y = this.getY();
  85. result = result * 59 + ($y == null ? 43 : $y.hashCode());
  86. return result;
  87. }
  88. public String toString() {
  89. return "Expression(x=" + this.getX() + ", m=" + this.getM() + ", y=" + this.getY() + ")";
  90. }
  91. }