@Test public void testEquals() { AddCommunity ac = new AddCommunity(new LiteralCommunity(StandardCommunity.of(1L))); new EqualsTester() .addEqualityGroup(ac, ac, new AddCommunity(new LiteralCommunity(StandardCommunity.of(1L)))) .addEqualityGroup(new AddCommunity(new LiteralCommunity(StandardCommunity.of(2L)))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddCommunity)) { return false; } AddCommunity that = (AddCommunity) o; return Objects.equals(_expr, that._expr); }
AddCommunity extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddCommunity)) { return false; } AddCommunity that = (AddCommunity) o; return Objects.equals(_expr, that._expr); } }
AddCommunity extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddCommunity)) { return false; } AddCommunity that = (AddCommunity) o; return Objects.equals(_expr, that._expr); } AddCommunity(CommunitySetExpr expr); }
AddCommunity extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddCommunity)) { return false; } AddCommunity that = (AddCommunity) o; return Objects.equals(_expr, that._expr); } AddCommunity(CommunitySetExpr expr); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override Result execute(Environment environment); @JsonProperty(PROP_EXPR) CommunitySetExpr getExpr(); }
AddCommunity extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddCommunity)) { return false; } AddCommunity that = (AddCommunity) o; return Objects.equals(_expr, that._expr); } AddCommunity(CommunitySetExpr expr); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override Result execute(Environment environment); @JsonProperty(PROP_EXPR) CommunitySetExpr getExpr();  }