@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup( new FirstMatchChain(ImmutableList.of(BooleanExprs.TRUE)), new FirstMatchChain(ImmutableList.of(BooleanExprs.TRUE))) .addEqualityGroup(ImmutableList.of()) .addEqualityGroup(ImmutableList.of(BooleanExprs.FALSE)) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirstMatchChain)) { return false; } FirstMatchChain that = (FirstMatchChain) o; return Objects.equals(_subroutines, that._subroutines); }
FirstMatchChain extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirstMatchChain)) { return false; } FirstMatchChain that = (FirstMatchChain) o; return Objects.equals(_subroutines, that._subroutines); } }
FirstMatchChain extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirstMatchChain)) { return false; } FirstMatchChain that = (FirstMatchChain) o; return Objects.equals(_subroutines, that._subroutines); } FirstMatchChain(List<BooleanExpr> subroutines); }
FirstMatchChain extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirstMatchChain)) { return false; } FirstMatchChain that = (FirstMatchChain) o; return Objects.equals(_subroutines, that._subroutines); } FirstMatchChain(List<BooleanExpr> subroutines); @Override T accept(BooleanExprVisitor<T, U> visitor, U arg); @Override Set<String> collectSources(
      Set<String> parentSources, Map<String, RoutingPolicy> routingPolicies, Warnings w); @Override Result evaluate(Environment environment); @Nonnull @JsonProperty(PROP_SUBROUTINES) List<BooleanExpr> getSubroutines(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
FirstMatchChain extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirstMatchChain)) { return false; } FirstMatchChain that = (FirstMatchChain) o; return Objects.equals(_subroutines, that._subroutines); } FirstMatchChain(List<BooleanExpr> subroutines); @Override T accept(BooleanExprVisitor<T, U> visitor, U arg); @Override Set<String> collectSources(
      Set<String> parentSources, Map<String, RoutingPolicy> routingPolicies, Warnings w); @Override Result evaluate(Environment environment); @Nonnull @JsonProperty(PROP_SUBROUTINES) List<BooleanExpr> getSubroutines(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }