@Test public void testToBuilder() { EigrpExternalRoute r = EigrpExternalRoute.builder() .setNetwork(Prefix.parse("1.1.1.0/24")) .setMetric(1L) .setDestinationAsn(1L) .setEigrpMetric( ClassicMetric.builder() .setValues( EigrpMetricValues.builder() .setBandwidth((long) 1E8) .setDelay((long) 1D) .build()) .build()) .setProcessAsn(2L) .build(); assertThat(r.toBuilder().build(), Matchers.equalTo(r)); }
@Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(getAdministrativeCost()) .setTag(getTag()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setDestinationAsn(getDestinationAsn()) .setEigrpMetric(getEigrpMetric()) .setProcessAsn(getProcessAsn()); }
EigrpExternalRoute extends EigrpRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(getAdministrativeCost()) .setTag(getTag()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setDestinationAsn(getDestinationAsn()) .setEigrpMetric(getEigrpMetric()) .setProcessAsn(getProcessAsn()); } }
EigrpExternalRoute extends EigrpRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(getAdministrativeCost()) .setTag(getTag()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setDestinationAsn(getDestinationAsn()) .setEigrpMetric(getEigrpMetric()) .setProcessAsn(getProcessAsn()); } private  EigrpExternalRoute(
      @Nullable Prefix network,
      int admin,
      long destinationAsn,
      @Nullable Ip nextHopIp,
      @Nonnull EigrpMetric metric,
      long processAsn,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); }
EigrpExternalRoute extends EigrpRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(getAdministrativeCost()) .setTag(getTag()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setDestinationAsn(getDestinationAsn()) .setEigrpMetric(getEigrpMetric()) .setProcessAsn(getProcessAsn()); } private  EigrpExternalRoute(
      @Nullable Prefix network,
      int admin,
      long destinationAsn,
      @Nullable Ip nextHopIp,
      @Nonnull EigrpMetric metric,
      long processAsn,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); @JsonProperty(PROP_DESTINATION_ASN) long getDestinationAsn(); @Override @Nonnull RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(Object obj); @Override final int hashCode(); @Override String toString(); }
EigrpExternalRoute extends EigrpRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(getAdministrativeCost()) .setTag(getTag()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setDestinationAsn(getDestinationAsn()) .setEigrpMetric(getEigrpMetric()) .setProcessAsn(getProcessAsn()); } private  EigrpExternalRoute(
      @Nullable Prefix network,
      int admin,
      long destinationAsn,
      @Nullable Ip nextHopIp,
      @Nonnull EigrpMetric metric,
      long processAsn,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); @JsonProperty(PROP_DESTINATION_ASN) long getDestinationAsn(); @Override @Nonnull RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(Object obj); @Override final int hashCode(); @Override String toString();  }