@Test public void testEquals() { SetNextHop expr = new SetNextHop(new IpNextHop(Collections.singletonList(Ip.ZERO))); new EqualsTester() .addEqualityGroup( expr, expr, new SetNextHop(new IpNextHop(Collections.singletonList(Ip.ZERO)))) .addEqualityGroup(new SetNextHop(new IpNextHop(Collections.singletonList(Ip.MAX)))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SetNextHop)) { return false; } SetNextHop that = (SetNextHop) o; return _expr.equals(that._expr); }
SetNextHop extends Statement { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SetNextHop)) { return false; } SetNextHop that = (SetNextHop) o; return _expr.equals(that._expr); } }
SetNextHop extends Statement { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SetNextHop)) { return false; } SetNextHop that = (SetNextHop) o; return _expr.equals(that._expr); } SetNextHop(NextHopExpr expr); }
SetNextHop extends Statement { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SetNextHop)) { return false; } SetNextHop that = (SetNextHop) o; return _expr.equals(that._expr); } SetNextHop(NextHopExpr expr); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override Result execute(Environment environment); @JsonProperty(PROP_EXPR) @Nonnull NextHopExpr getExpr(); @Override boolean equals(Object o); @Override int hashCode(); }
SetNextHop extends Statement { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SetNextHop)) { return false; } SetNextHop that = (SetNextHop) o; return _expr.equals(that._expr); } SetNextHop(NextHopExpr expr); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override Result execute(Environment environment); @JsonProperty(PROP_EXPR) @Nonnull NextHopExpr getExpr(); @Override boolean equals(Object o); @Override int hashCode();  }