@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new IspConfiguration( ImmutableList.of( new BorderInterfaceInfo(NodeInterfacePair.of("node", "interface"))), new IspFilter(ImmutableList.of(1234L), ImmutableList.of(Ip.parse("1.1.1.1"))), ImmutableList.of(new IspNodeInfo(42, "n1"))), new IspConfiguration( ImmutableList.of( new BorderInterfaceInfo(NodeInterfacePair.of("node", "interface"))), new IspFilter(ImmutableList.of(1234L), ImmutableList.of(Ip.parse("1.1.1.1"))), ImmutableList.of(new IspNodeInfo(42, "n1")))) .addEqualityGroup( new IspConfiguration( ImmutableList.of( new BorderInterfaceInfo(NodeInterfacePair.of("node", "interface"))), new IspFilter(ImmutableList.of(5678L), ImmutableList.of(Ip.parse("2.2.2.2"))), ImmutableList.of(new IspNodeInfo(42, "n1")))) .addEqualityGroup( new IspConfiguration( ImmutableList.of( new BorderInterfaceInfo(NodeInterfacePair.of("diffNode", "diffInterface"))), new IspFilter(ImmutableList.of(1234L), ImmutableList.of(Ip.parse("1.1.1.1"))), ImmutableList.of(new IspNodeInfo(42, "n1")))) .addEqualityGroup( new IspConfiguration( ImmutableList.of( new BorderInterfaceInfo(NodeInterfacePair.of("node", "interface"))), new IspFilter(ImmutableList.of(1234L), ImmutableList.of(Ip.parse("1.1.1.1"))), ImmutableList.of(new IspNodeInfo(24, "diffName")))) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IspConfiguration)) { return false; } IspConfiguration that = (IspConfiguration) o; return Objects.equals(_borderInterfaces, that._borderInterfaces) && Objects.equals(_filter, that._filter) && Objects.equals(_ispNodeInfos, that._ispNodeInfos); }
IspConfiguration { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IspConfiguration)) { return false; } IspConfiguration that = (IspConfiguration) o; return Objects.equals(_borderInterfaces, that._borderInterfaces) && Objects.equals(_filter, that._filter) && Objects.equals(_ispNodeInfos, that._ispNodeInfos); } }
IspConfiguration { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IspConfiguration)) { return false; } IspConfiguration that = (IspConfiguration) o; return Objects.equals(_borderInterfaces, that._borderInterfaces) && Objects.equals(_filter, that._filter) && Objects.equals(_ispNodeInfos, that._ispNodeInfos); } IspConfiguration(
      @Nonnull List<BorderInterfaceInfo> borderInterfaces, @Nonnull IspFilter filter);  IspConfiguration(
      @Nonnull List<BorderInterfaceInfo> borderInterfaces,
      @Nonnull IspFilter filter,
      @Nonnull List<IspNodeInfo> ispNodeInfos); }
IspConfiguration { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IspConfiguration)) { return false; } IspConfiguration that = (IspConfiguration) o; return Objects.equals(_borderInterfaces, that._borderInterfaces) && Objects.equals(_filter, that._filter) && Objects.equals(_ispNodeInfos, that._ispNodeInfos); } IspConfiguration(
      @Nonnull List<BorderInterfaceInfo> borderInterfaces, @Nonnull IspFilter filter);  IspConfiguration(
      @Nonnull List<BorderInterfaceInfo> borderInterfaces,
      @Nonnull IspFilter filter,
      @Nonnull List<IspNodeInfo> ispNodeInfos); @Override boolean equals(Object o); @Override int hashCode(); @JsonProperty(PROP_BORDER_INTERFACES) @Nonnull List<BorderInterfaceInfo> getBorderInterfaces(); @JsonProperty(PROP_FILTER) @Nonnull IspFilter getFilter(); @JsonProperty(PROP_ISP_NODE_INFO) @Nonnull List<IspNodeInfo> getIspNodeInfos(); }
IspConfiguration { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IspConfiguration)) { return false; } IspConfiguration that = (IspConfiguration) o; return Objects.equals(_borderInterfaces, that._borderInterfaces) && Objects.equals(_filter, that._filter) && Objects.equals(_ispNodeInfos, that._ispNodeInfos); } IspConfiguration(
      @Nonnull List<BorderInterfaceInfo> borderInterfaces, @Nonnull IspFilter filter);  IspConfiguration(
      @Nonnull List<BorderInterfaceInfo> borderInterfaces,
      @Nonnull IspFilter filter,
      @Nonnull List<IspNodeInfo> ispNodeInfos); @Override boolean equals(Object o); @Override int hashCode(); @JsonProperty(PROP_BORDER_INTERFACES) @Nonnull List<BorderInterfaceInfo> getBorderInterfaces(); @JsonProperty(PROP_FILTER) @Nonnull IspFilter getFilter(); @JsonProperty(PROP_ISP_NODE_INFO) @Nonnull List<IspNodeInfo> getIspNodeInfos();  }