@Test public void testEquals() { Builder builder = FibLookupOverrideLookupIp.builder() .setIps(ImmutableList.of(Ip.ZERO)) .setVrfExpr(IngressInterfaceVrf.instance()) .setRequireConnected(true) .setDefaultAction(Drop.instance()); FibLookupOverrideLookupIp fl = builder.build(); new EqualsTester() .addEqualityGroup(fl, fl, builder.build()) .addEqualityGroup(builder.setIps(ImmutableList.of(Ip.MAX)).build()) .addEqualityGroup(builder.setVrfExpr(new LiteralVrfName("avrf")).build()) .addEqualityGroup( builder.setDefaultAction(new FibLookup(IngressInterfaceVrf.instance())).build()) .addEqualityGroup(builder.setRequireConnected(false).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOverrideLookupIp)) { return false; } FibLookupOverrideLookupIp that = (FibLookupOverrideLookupIp) o; return _ips.equals(that._ips) && _requireConnected == that._requireConnected && _vrfExpr.equals(that._vrfExpr) && _defaultAction.equals(that._defaultAction); }
FibLookupOverrideLookupIp implements Action { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOverrideLookupIp)) { return false; } FibLookupOverrideLookupIp that = (FibLookupOverrideLookupIp) o; return _ips.equals(that._ips) && _requireConnected == that._requireConnected && _vrfExpr.equals(that._vrfExpr) && _defaultAction.equals(that._defaultAction); } }
FibLookupOverrideLookupIp implements Action { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOverrideLookupIp)) { return false; } FibLookupOverrideLookupIp that = (FibLookupOverrideLookupIp) o; return _ips.equals(that._ips) && _requireConnected == that._requireConnected && _vrfExpr.equals(that._vrfExpr) && _defaultAction.equals(that._defaultAction); } private  FibLookupOverrideLookupIp(
      List<Ip> ips, VrfExpr vrfExpr, boolean requireConnected, Action defaultAction); }
FibLookupOverrideLookupIp implements Action { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOverrideLookupIp)) { return false; } FibLookupOverrideLookupIp that = (FibLookupOverrideLookupIp) o; return _ips.equals(that._ips) && _requireConnected == that._requireConnected && _vrfExpr.equals(that._vrfExpr) && _defaultAction.equals(that._defaultAction); } private  FibLookupOverrideLookupIp(
      List<Ip> ips, VrfExpr vrfExpr, boolean requireConnected, Action defaultAction); @Nonnull @JsonProperty(PROP_IPS) List<Ip> getIps(); @Nonnull @JsonProperty(PROP_DEFAULT_ACTION) Action getDefaultAction(); @Nonnull @JsonProperty(PROP_VRF_EXPR) VrfExpr getVrfExpr(); @JsonProperty(PROP_REQUIRE_CONNECTED) boolean requireConnected(); @Override T accept(ActionVisitor<T> visitor); static Builder builder(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
FibLookupOverrideLookupIp implements Action { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOverrideLookupIp)) { return false; } FibLookupOverrideLookupIp that = (FibLookupOverrideLookupIp) o; return _ips.equals(that._ips) && _requireConnected == that._requireConnected && _vrfExpr.equals(that._vrfExpr) && _defaultAction.equals(that._defaultAction); } private  FibLookupOverrideLookupIp(
      List<Ip> ips, VrfExpr vrfExpr, boolean requireConnected, Action defaultAction); @Nonnull @JsonProperty(PROP_IPS) List<Ip> getIps(); @Nonnull @JsonProperty(PROP_DEFAULT_ACTION) Action getDefaultAction(); @Nonnull @JsonProperty(PROP_VRF_EXPR) VrfExpr getVrfExpr(); @JsonProperty(PROP_REQUIRE_CONNECTED) boolean requireConnected(); @Override T accept(ActionVisitor<T> visitor); static Builder builder(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }