@Test public void testEqualsRemote() { new EqualsTester() .addEqualityGroup( new Remote( "a", "b", ConcreteInterfaceAddress.parse("1.1.1.1/32"), BgpActivePeerConfig.builder().build()), new Remote( "a", "b", ConcreteInterfaceAddress.parse("1.1.1.1/32"), BgpActivePeerConfig.builder().build())) .addEqualityGroup( new Remote( "other", "b", ConcreteInterfaceAddress.parse("1.1.1.1/32"), BgpActivePeerConfig.builder().build())) .addEqualityGroup( new Remote( "a", "other", ConcreteInterfaceAddress.parse("1.1.1.1/32"), BgpActivePeerConfig.builder().build())) .addEqualityGroup( new Remote( "a", "b", ConcreteInterfaceAddress.parse("2.2.2.2/32"), BgpActivePeerConfig.builder().build())) .addEqualityGroup( new Remote( "other", "b", ConcreteInterfaceAddress.parse("1.1.1.1/32"), BgpActivePeerConfig.builder().setDescription("other").build())) .testEquals(); }
public static @Nonnull Builder builder() { return new Builder(); }
IspModel { public static @Nonnull Builder builder() { return new Builder(); } }
IspModel { public static @Nonnull Builder builder() { return new Builder(); } private  IspModel(
      long asn,
      List<Remote> remotes,
      @Nullable String name,
      Set<Prefix> additionalPrefixesToInternet,
      IspTrafficFiltering trafficFiltering); }
IspModel { public static @Nonnull Builder builder() { return new Builder(); } private  IspModel(
      long asn,
      List<Remote> remotes,
      @Nullable String name,
      Set<Prefix> additionalPrefixesToInternet,
      IspTrafficFiltering trafficFiltering); static @Nonnull Builder builder(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); long getAsn(); @Nonnull String getHostname(); @Nullable String getName(); @Nonnull Set<Prefix> getAdditionalPrefixesToInternet(); @Nonnull IspTrafficFiltering getTrafficFiltering(); }
IspModel { public static @Nonnull Builder builder() { return new Builder(); } private  IspModel(
      long asn,
      List<Remote> remotes,
      @Nullable String name,
      Set<Prefix> additionalPrefixesToInternet,
      IspTrafficFiltering trafficFiltering); static @Nonnull Builder builder(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); long getAsn(); @Nonnull String getHostname(); @Nullable String getName(); @Nonnull Set<Prefix> getAdditionalPrefixesToInternet(); @Nonnull IspTrafficFiltering getTrafficFiltering();  }