@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new MatchProtocol(RoutingProtocol.STATIC), new MatchProtocol(RoutingProtocol.STATIC)) .addEqualityGroup(new MatchProtocol(RoutingProtocol.BGP)) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof MatchProtocol)) { return false; } MatchProtocol that = (MatchProtocol) o; return _protocols.equals(that._protocols); }
MatchProtocol extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof MatchProtocol)) { return false; } MatchProtocol that = (MatchProtocol) o; return _protocols.equals(that._protocols); } }
MatchProtocol extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof MatchProtocol)) { return false; } MatchProtocol that = (MatchProtocol) o; return _protocols.equals(that._protocols); } MatchProtocol(RoutingProtocol... protocols);  MatchProtocol(Collection<RoutingProtocol> protocols); }
MatchProtocol extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof MatchProtocol)) { return false; } MatchProtocol that = (MatchProtocol) o; return _protocols.equals(that._protocols); } MatchProtocol(RoutingProtocol... protocols);  MatchProtocol(Collection<RoutingProtocol> protocols); @Override T accept(BooleanExprVisitor<T, U> visitor, U arg); @Override Result evaluate(Environment environment); @Nonnull @JsonProperty(PROP_PROTOCOLS) Set<RoutingProtocol> getProtocols(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
MatchProtocol extends BooleanExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof MatchProtocol)) { return false; } MatchProtocol that = (MatchProtocol) o; return _protocols.equals(that._protocols); } MatchProtocol(RoutingProtocol... protocols);  MatchProtocol(Collection<RoutingProtocol> protocols); @Override T accept(BooleanExprVisitor<T, U> visitor, U arg); @Override Result evaluate(Environment environment); @Nonnull @JsonProperty(PROP_PROTOCOLS) Set<RoutingProtocol> getProtocols(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }