@Test public void testEquals() { Transformation trivial = always().apply(NOOP_SOURCE_NAT).build(); new EqualsTester() .addEqualityGroup(trivial, always().apply(NOOP_SOURCE_NAT).build()) .addEqualityGroup(when(FALSE).apply(NOOP_SOURCE_NAT).build()) .addEqualityGroup(always().apply(shiftDestinationIp(Prefix.ZERO)).build()) .addEqualityGroup(always().apply(NOOP_SOURCE_NAT).setAndThen(trivial).build()) .addEqualityGroup(always().apply(NOOP_SOURCE_NAT).setOrElse(trivial).build()) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Transformation)) { return false; } Transformation that = (Transformation) o; return Objects.equals(_guard, that._guard) && Objects.equals(_transformationSteps, that._transformationSteps) && Objects.equals(_andThen, that._andThen) && Objects.equals(_orElse, that._orElse); }
Transformation implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Transformation)) { return false; } Transformation that = (Transformation) o; return Objects.equals(_guard, that._guard) && Objects.equals(_transformationSteps, that._transformationSteps) && Objects.equals(_andThen, that._andThen) && Objects.equals(_orElse, that._orElse); } }
Transformation implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Transformation)) { return false; } Transformation that = (Transformation) o; return Objects.equals(_guard, that._guard) && Objects.equals(_transformationSteps, that._transformationSteps) && Objects.equals(_andThen, that._andThen) && Objects.equals(_orElse, that._orElse); } Transformation(
      @Nonnull AclLineMatchExpr guard,
      @Nonnull List<TransformationStep> transformationSteps,
      @Nullable Transformation andThen,
      @Nullable Transformation orElse); }
Transformation implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Transformation)) { return false; } Transformation that = (Transformation) o; return Objects.equals(_guard, that._guard) && Objects.equals(_transformationSteps, that._transformationSteps) && Objects.equals(_andThen, that._andThen) && Objects.equals(_orElse, that._orElse); } Transformation(
      @Nonnull AclLineMatchExpr guard,
      @Nonnull List<TransformationStep> transformationSteps,
      @Nullable Transformation andThen,
      @Nullable Transformation orElse); static Builder always(); static Builder when(AclLineMatchExpr guard); @JsonProperty(PROP_GUARD) @Nonnull AclLineMatchExpr getGuard(); @JsonProperty(PROP_TRANSFORMATION_STEPS) @Nonnull List<TransformationStep> getTransformationSteps(); @JsonProperty(PROP_AND_THEN) @Nullable Transformation getAndThen(); @JsonProperty(PROP_OR_ELSE) @Nullable Transformation getOrElse(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Transformation implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Transformation)) { return false; } Transformation that = (Transformation) o; return Objects.equals(_guard, that._guard) && Objects.equals(_transformationSteps, that._transformationSteps) && Objects.equals(_andThen, that._andThen) && Objects.equals(_orElse, that._orElse); } Transformation(
      @Nonnull AclLineMatchExpr guard,
      @Nonnull List<TransformationStep> transformationSteps,
      @Nullable Transformation andThen,
      @Nullable Transformation orElse); static Builder always(); static Builder when(AclLineMatchExpr guard); @JsonProperty(PROP_GUARD) @Nonnull AclLineMatchExpr getGuard(); @JsonProperty(PROP_TRANSFORMATION_STEPS) @Nonnull List<TransformationStep> getTransformationSteps(); @JsonProperty(PROP_AND_THEN) @Nullable Transformation getAndThen(); @JsonProperty(PROP_OR_ELSE) @Nullable Transformation getOrElse(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }