@Test public void testEquals() { ApplyTransformation at = new ApplyTransformation(Transformation.always().apply(ImmutableList.of()).build()); new EqualsTester() .addEqualityGroup( at, at, new ApplyTransformation(Transformation.always().apply(ImmutableList.of()).build())) .addEqualityGroup( new ApplyTransformation( Transformation.when(FalseExpr.INSTANCE).apply(ImmutableList.of()).build())) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ApplyTransformation)) { return false; } ApplyTransformation that = (ApplyTransformation) o; return _transformation.equals(that._transformation); }
ApplyTransformation implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ApplyTransformation)) { return false; } ApplyTransformation that = (ApplyTransformation) o; return _transformation.equals(that._transformation); } }
ApplyTransformation implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ApplyTransformation)) { return false; } ApplyTransformation that = (ApplyTransformation) o; return _transformation.equals(that._transformation); } ApplyTransformation(Transformation transformation); }
ApplyTransformation implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ApplyTransformation)) { return false; } ApplyTransformation that = (ApplyTransformation) o; return _transformation.equals(that._transformation); } ApplyTransformation(Transformation transformation); @Nonnull @JsonProperty(PROP_TRANSFORMATION) Transformation getTransformation(); @Override T accept(StatementVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
ApplyTransformation implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ApplyTransformation)) { return false; } ApplyTransformation that = (ApplyTransformation) o; return _transformation.equals(that._transformation); } ApplyTransformation(Transformation transformation); @Nonnull @JsonProperty(PROP_TRANSFORMATION) Transformation getTransformation(); @Override T accept(StatementVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }