@Test public void testEquals() { Bridge.Builder bb = Bridge.builder().setPorts(ImmutableSet.of()).setPvid(1).setVids(IntegerSpace.EMPTY); CumulusFamily.Builder builder = CumulusFamily.builder().setBridge(bb.build()); CumulusFamily c1 = builder.build(); new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup(c1, c1, builder.build()) .addEqualityGroup(builder.build().toString()) .addEqualityGroup(builder.setBridge(bb.setPvid(2).build()).build()) .addEqualityGroup(builder.build().toString()) .addEqualityGroup( builder.setInterfaceClagSettings( ImmutableSortedMap.of("foo", InterfaceClagSettings.builder().build()))) .addEqualityGroup(builder.build().toString()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CumulusFamily)) { return false; } CumulusFamily rhs = (CumulusFamily) obj; return _bridge.equals(rhs._bridge) && _interfaceClagSettings.equals(rhs._interfaceClagSettings); }
CumulusFamily implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CumulusFamily)) { return false; } CumulusFamily rhs = (CumulusFamily) obj; return _bridge.equals(rhs._bridge) && _interfaceClagSettings.equals(rhs._interfaceClagSettings); } }
CumulusFamily implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CumulusFamily)) { return false; } CumulusFamily rhs = (CumulusFamily) obj; return _bridge.equals(rhs._bridge) && _interfaceClagSettings.equals(rhs._interfaceClagSettings); } private  CumulusFamily(
      Bridge bridge, SortedMap<String, InterfaceClagSettings> interfaceClagSettings); }
CumulusFamily implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CumulusFamily)) { return false; } CumulusFamily rhs = (CumulusFamily) obj; return _bridge.equals(rhs._bridge) && _interfaceClagSettings.equals(rhs._interfaceClagSettings); } private  CumulusFamily(
      Bridge bridge, SortedMap<String, InterfaceClagSettings> interfaceClagSettings); static @Nonnull Builder builder(); @JsonProperty(PROP_BRIDGE) @Nonnull Bridge getBridge(); @JsonProperty(PROP_INTERFACE_CLAG_SETTINGS) @Nonnull SortedMap<String, InterfaceClagSettings> getInterfaceClagSettings(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override @Nonnull String toString(); }
CumulusFamily implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof CumulusFamily)) { return false; } CumulusFamily rhs = (CumulusFamily) obj; return _bridge.equals(rhs._bridge) && _interfaceClagSettings.equals(rhs._interfaceClagSettings); } private  CumulusFamily(
      Bridge bridge, SortedMap<String, InterfaceClagSettings> interfaceClagSettings); static @Nonnull Builder builder(); @JsonProperty(PROP_BRIDGE) @Nonnull Bridge getBridge(); @JsonProperty(PROP_INTERFACE_CLAG_SETTINGS) @Nonnull SortedMap<String, InterfaceClagSettings> getInterfaceClagSettings(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); @Override @Nonnull String toString();  }