aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValueStaticConstructorOf.java
blob: 6cf71ed4c75d304b94014f6a6bf8bd5a61db775f (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
import lombok.Value;
public final @Value(staticConstructor = "of") class ValueStaticConstructorOf {
  private final String name;
  private final Double price;
  private ValueStaticConstructorOf(String name, Double price) {
    super();
    this.name = name;
    this.price = price;
  }
  public @java.lang.SuppressWarnings("all") String getName() {
    return this.name;
  }
  public @java.lang.SuppressWarnings("all") Double getPrice() {
    return this.price;
  }
  public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
    if ((o == this))
        return true;
    if ((! (o instanceof ValueStaticConstructorOf)))
        return false;
    final ValueStaticConstructorOf other = (ValueStaticConstructorOf) 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$price = this.getPrice();
    final java.lang.Object other$price = other.getPrice();
    if (((this$price == null) ? (other$price != null) : (! this$price.equals(other$price))))
        return false;
    return true;
  }
  public @java.lang.Override @java.lang.SuppressWarnings("all") 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 $price = this.getPrice();
    result = ((result * PRIME) + (($price == null) ? 43 : $price.hashCode()));
    return result;
  }
  public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
    return (((("ValueStaticConstructorOf(name=" + this.getName()) + ", price=") + this.getPrice()) + ")");
  }
  public static @java.lang.SuppressWarnings("all") ValueStaticConstructorOf of(final String name, final Double price) {
    return new ValueStaticConstructorOf(name, price);
  }
}