@Test public void testEquals() { OspfInterfaceSettings.Builder s = OspfInterfaceSettings.builder().setHelloInterval(0).setDeadInterval(0).setPassive(true); new EqualsTester() .addEqualityGroup(s.build()) .addEqualityGroup( s.setAreaName(2L).build(), OspfInterfaceSettings.builder() .setAreaName(2L) .setHelloInterval(0) .setDeadInterval(0) .setPassive(true) .build()) .addEqualityGroup(s.setCost(3).build()) .addEqualityGroup(s.setDeadInterval(4).build()) .addEqualityGroup(s.setEnabled(false).build()) .addEqualityGroup(s.setHelloInterval(1).build()) .addEqualityGroup(s.setHelloMultiplier(5).build()) .addEqualityGroup(s.setInboundDistributeListPolicy("policy").build()) .addEqualityGroup(s.setNbmaNeighbors(ImmutableSet.of(Ip.parse("1.2.3.4"))).build()) .addEqualityGroup(s.setNetworkType(OspfNetworkType.POINT_TO_POINT).build()) .addEqualityGroup(s.setNetworkType(OspfNetworkType.BROADCAST).build()) .addEqualityGroup(s.setNetworkType(OspfNetworkType.POINT_TO_MULTIPOINT).build()) .addEqualityGroup(s.setNetworkType(OspfNetworkType.NON_BROADCAST_MULTI_ACCESS).build()) .addEqualityGroup(s.setPassive(false).build()) .addEqualityGroup(s.setProcess("proc").build()) .testEquals(); }
@Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof OspfInterfaceSettings)) { return false; } OspfInterfaceSettings other = (OspfInterfaceSettings) o; return Objects.equals(_ospfAreaName, other._ospfAreaName) && Objects.equals(_ospfCost, other._ospfCost) && _ospfDeadInterval == other._ospfDeadInterval && _ospfEnabled == other._ospfEnabled && _ospfHelloInterval == other._ospfHelloInterval && Objects.equals(_ospfHelloMultiplier, other._ospfHelloMultiplier) && Objects.equals(_ospfInboundDistributeListPolicy, other._ospfInboundDistributeListPolicy) && Objects.equals(_ospfNbmaNeighbors, other._ospfNbmaNeighbors) && Objects.equals(_ospfNetworkType, other._ospfNetworkType) && _ospfPassive == other._ospfPassive && Objects.equals(_ospfProcess, other._ospfProcess); }
OspfInterfaceSettings implements Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof OspfInterfaceSettings)) { return false; } OspfInterfaceSettings other = (OspfInterfaceSettings) o; return Objects.equals(_ospfAreaName, other._ospfAreaName) && Objects.equals(_ospfCost, other._ospfCost) && _ospfDeadInterval == other._ospfDeadInterval && _ospfEnabled == other._ospfEnabled && _ospfHelloInterval == other._ospfHelloInterval && Objects.equals(_ospfHelloMultiplier, other._ospfHelloMultiplier) && Objects.equals(_ospfInboundDistributeListPolicy, other._ospfInboundDistributeListPolicy) && Objects.equals(_ospfNbmaNeighbors, other._ospfNbmaNeighbors) && Objects.equals(_ospfNetworkType, other._ospfNetworkType) && _ospfPassive == other._ospfPassive && Objects.equals(_ospfProcess, other._ospfProcess); } }
OspfInterfaceSettings implements Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof OspfInterfaceSettings)) { return false; } OspfInterfaceSettings other = (OspfInterfaceSettings) o; return Objects.equals(_ospfAreaName, other._ospfAreaName) && Objects.equals(_ospfCost, other._ospfCost) && _ospfDeadInterval == other._ospfDeadInterval && _ospfEnabled == other._ospfEnabled && _ospfHelloInterval == other._ospfHelloInterval && Objects.equals(_ospfHelloMultiplier, other._ospfHelloMultiplier) && Objects.equals(_ospfInboundDistributeListPolicy, other._ospfInboundDistributeListPolicy) && Objects.equals(_ospfNbmaNeighbors, other._ospfNbmaNeighbors) && Objects.equals(_ospfNetworkType, other._ospfNetworkType) && _ospfPassive == other._ospfPassive && Objects.equals(_ospfProcess, other._ospfProcess); } private  OspfInterfaceSettings(
      @Nullable Long area,
      @Nullable Integer cost,
      int deadInterval,
      boolean enabled,
      int helloInterval,
      @Nullable Integer helloMultiplier,
      @Nullable String inboundDistributeListPolicy,
      @Nonnull Set<Ip> nbmaNeighbors,
      @Nullable OspfNetworkType networkType,
      boolean passive,
      @Nullable String process); }
OspfInterfaceSettings implements Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof OspfInterfaceSettings)) { return false; } OspfInterfaceSettings other = (OspfInterfaceSettings) o; return Objects.equals(_ospfAreaName, other._ospfAreaName) && Objects.equals(_ospfCost, other._ospfCost) && _ospfDeadInterval == other._ospfDeadInterval && _ospfEnabled == other._ospfEnabled && _ospfHelloInterval == other._ospfHelloInterval && Objects.equals(_ospfHelloMultiplier, other._ospfHelloMultiplier) && Objects.equals(_ospfInboundDistributeListPolicy, other._ospfInboundDistributeListPolicy) && Objects.equals(_ospfNbmaNeighbors, other._ospfNbmaNeighbors) && Objects.equals(_ospfNetworkType, other._ospfNetworkType) && _ospfPassive == other._ospfPassive && Objects.equals(_ospfProcess, other._ospfProcess); } private  OspfInterfaceSettings(
      @Nullable Long area,
      @Nullable Integer cost,
      int deadInterval,
      boolean enabled,
      int helloInterval,
      @Nullable Integer helloMultiplier,
      @Nullable String inboundDistributeListPolicy,
      @Nonnull Set<Ip> nbmaNeighbors,
      @Nullable OspfNetworkType networkType,
      boolean passive,
      @Nullable String process); static @Nonnull Builder builder(); static @Nonnull Builder defaultSettingsBuilder(); @Override int hashCode(); @Override boolean equals(Object o); @JsonProperty(PROP_AREA) @Nullable Long getAreaName(); @JsonProperty(PROP_COST) @Nullable Integer getCost(); @JsonProperty(PROP_DEAD_INTERVAL) int getDeadInterval(); @JsonProperty(PROP_ENABLED) boolean getEnabled(); @JsonProperty(PROP_HELLO_INTERVAL) int getHelloInterval(); @JsonProperty(PROP_HELLO_MULTIPLIER) @Nullable Integer getHelloMultiplier(); @JsonProperty(PROP_INBOUND_DISTRIBUTE_LIST_POLICY) @Nullable String getInboundDistributeListPolicy(); @Nonnull Set<Ip> getNbmaNeighbors(); @JsonProperty(PROP_NETWORK_TYPE) @Nullable OspfNetworkType getNetworkType(); @JsonProperty(PROP_PASSIVE) boolean getPassive(); @JsonProperty(PROP_PROCESS) @Nullable String getProcess(); void setCost(int cost); void setInboundDistributeListPolicy(String inboundDistributeListPolicy); void setHelloMultiplier(Integer helloMultiplier); }
OspfInterfaceSettings implements Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof OspfInterfaceSettings)) { return false; } OspfInterfaceSettings other = (OspfInterfaceSettings) o; return Objects.equals(_ospfAreaName, other._ospfAreaName) && Objects.equals(_ospfCost, other._ospfCost) && _ospfDeadInterval == other._ospfDeadInterval && _ospfEnabled == other._ospfEnabled && _ospfHelloInterval == other._ospfHelloInterval && Objects.equals(_ospfHelloMultiplier, other._ospfHelloMultiplier) && Objects.equals(_ospfInboundDistributeListPolicy, other._ospfInboundDistributeListPolicy) && Objects.equals(_ospfNbmaNeighbors, other._ospfNbmaNeighbors) && Objects.equals(_ospfNetworkType, other._ospfNetworkType) && _ospfPassive == other._ospfPassive && Objects.equals(_ospfProcess, other._ospfProcess); } private  OspfInterfaceSettings(
      @Nullable Long area,
      @Nullable Integer cost,
      int deadInterval,
      boolean enabled,
      int helloInterval,
      @Nullable Integer helloMultiplier,
      @Nullable String inboundDistributeListPolicy,
      @Nonnull Set<Ip> nbmaNeighbors,
      @Nullable OspfNetworkType networkType,
      boolean passive,
      @Nullable String process); static @Nonnull Builder builder(); static @Nonnull Builder defaultSettingsBuilder(); @Override int hashCode(); @Override boolean equals(Object o); @JsonProperty(PROP_AREA) @Nullable Long getAreaName(); @JsonProperty(PROP_COST) @Nullable Integer getCost(); @JsonProperty(PROP_DEAD_INTERVAL) int getDeadInterval(); @JsonProperty(PROP_ENABLED) boolean getEnabled(); @JsonProperty(PROP_HELLO_INTERVAL) int getHelloInterval(); @JsonProperty(PROP_HELLO_MULTIPLIER) @Nullable Integer getHelloMultiplier(); @JsonProperty(PROP_INBOUND_DISTRIBUTE_LIST_POLICY) @Nullable String getInboundDistributeListPolicy(); @Nonnull Set<Ip> getNbmaNeighbors(); @JsonProperty(PROP_NETWORK_TYPE) @Nullable OspfNetworkType getNetworkType(); @JsonProperty(PROP_PASSIVE) boolean getPassive(); @JsonProperty(PROP_PROCESS) @Nullable String getProcess(); void setCost(int cost); void setInboundDistributeListPolicy(String inboundDistributeListPolicy); void setHelloMultiplier(Integer helloMultiplier);  }