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