@Test public void testEquals() { FibLookupOutgoingInterfaceIsOneOf expr = new FibLookupOutgoingInterfaceIsOneOf(IngressInterfaceVrf.instance(), ImmutableSet.of()); new EqualsTester() .addEqualityGroup( expr, expr, new FibLookupOutgoingInterfaceIsOneOf( IngressInterfaceVrf.instance(), ImmutableSet.of())) .addEqualityGroup( new FibLookupOutgoingInterfaceIsOneOf(new LiteralVrfName("foo"), ImmutableSet.of())) .addEqualityGroup( new FibLookupOutgoingInterfaceIsOneOf( IngressInterfaceVrf.instance(), ImmutableSet.of("Iface"))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOutgoingInterfaceIsOneOf)) { return false; } FibLookupOutgoingInterfaceIsOneOf that = (FibLookupOutgoingInterfaceIsOneOf) o; return _vrf.equals(that._vrf) && _interfaceNames.equals(that._interfaceNames); }
FibLookupOutgoingInterfaceIsOneOf implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOutgoingInterfaceIsOneOf)) { return false; } FibLookupOutgoingInterfaceIsOneOf that = (FibLookupOutgoingInterfaceIsOneOf) o; return _vrf.equals(that._vrf) && _interfaceNames.equals(that._interfaceNames); } }
FibLookupOutgoingInterfaceIsOneOf implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOutgoingInterfaceIsOneOf)) { return false; } FibLookupOutgoingInterfaceIsOneOf that = (FibLookupOutgoingInterfaceIsOneOf) o; return _vrf.equals(that._vrf) && _interfaceNames.equals(that._interfaceNames); } FibLookupOutgoingInterfaceIsOneOf(VrfExpr vrf, Iterable<String> interfaceNames); }
FibLookupOutgoingInterfaceIsOneOf implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOutgoingInterfaceIsOneOf)) { return false; } FibLookupOutgoingInterfaceIsOneOf that = (FibLookupOutgoingInterfaceIsOneOf) o; return _vrf.equals(that._vrf) && _interfaceNames.equals(that._interfaceNames); } FibLookupOutgoingInterfaceIsOneOf(VrfExpr vrf, Iterable<String> interfaceNames); @Nonnull @JsonProperty(PROP_VRF) VrfExpr getVrf(); @Nonnull @JsonIgnore Set<String> getInterfaceNames(); @Override T accept(BoolExprVisitor<T> tBoolExprVisitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
FibLookupOutgoingInterfaceIsOneOf implements BoolExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FibLookupOutgoingInterfaceIsOneOf)) { return false; } FibLookupOutgoingInterfaceIsOneOf that = (FibLookupOutgoingInterfaceIsOneOf) o; return _vrf.equals(that._vrf) && _interfaceNames.equals(that._interfaceNames); } FibLookupOutgoingInterfaceIsOneOf(VrfExpr vrf, Iterable<String> interfaceNames); @Nonnull @JsonProperty(PROP_VRF) VrfExpr getVrf(); @Nonnull @JsonIgnore Set<String> getInterfaceNames(); @Override T accept(BoolExprVisitor<T> tBoolExprVisitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }