@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new PacketMatchExpr(TrueExpr.INSTANCE), new PacketMatchExpr(TrueExpr.INSTANCE)) .addEqualityGroup(new PacketMatchExpr(FalseExpr.INSTANCE)) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PacketMatchExpr that = (PacketMatchExpr) o; return Objects.equals(getExpr(), that.getExpr()); }
PacketMatchExpr implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PacketMatchExpr that = (PacketMatchExpr) o; return Objects.equals(getExpr(), that.getExpr()); } }
PacketMatchExpr implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PacketMatchExpr that = (PacketMatchExpr) o; return Objects.equals(getExpr(), that.getExpr()); } PacketMatchExpr(AclLineMatchExpr expr); }
PacketMatchExpr implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PacketMatchExpr that = (PacketMatchExpr) o; return Objects.equals(getExpr(), that.getExpr()); } PacketMatchExpr(AclLineMatchExpr expr); @Override T accept(BoolExprVisitor<T> visitor); @JsonProperty(PROP_EXPR) AclLineMatchExpr getExpr(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
PacketMatchExpr implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PacketMatchExpr that = (PacketMatchExpr) o; return Objects.equals(getExpr(), that.getExpr()); } PacketMatchExpr(AclLineMatchExpr expr); @Override T accept(BoolExprVisitor<T> visitor); @JsonProperty(PROP_EXPR) AclLineMatchExpr getExpr(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }