@Test public void testToBuilder() { RipInternalRoute r = RipInternalRoute.builder().setNetwork(Prefix.parse("1.1.1.0/24")).setMetric(1L).build(); assertThat(r.toBuilder().build(), Matchers.equalTo(r)); }
@Override public Builder toBuilder() { return new Builder() .setAdmin(getAdministrativeCost()) .setMetric(getMetric()) .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(getTag()); }
RipInternalRoute extends RipRoute { @Override public Builder toBuilder() { return new Builder() .setAdmin(getAdministrativeCost()) .setMetric(getMetric()) .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(getTag()); } }
RipInternalRoute extends RipRoute { @Override public Builder toBuilder() { return new Builder() .setAdmin(getAdministrativeCost()) .setMetric(getMetric()) .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(getTag()); } @JsonCreator  RipInternalRoute(
      @JsonProperty(PROP_NETWORK) Prefix network,
      @JsonProperty(PROP_NEXT_HOP_IP) Ip nextHopIp,
      @JsonProperty(PROP_ADMINISTRATIVE_COST) int admin,
      @JsonProperty(PROP_METRIC) long metric,
      @JsonProperty(PROP_TAG) long tag); }
RipInternalRoute extends RipRoute { @Override public Builder toBuilder() { return new Builder() .setAdmin(getAdministrativeCost()) .setMetric(getMetric()) .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(getTag()); } @JsonCreator  RipInternalRoute(
      @JsonProperty(PROP_NETWORK) Prefix network,
      @JsonProperty(PROP_NEXT_HOP_IP) Ip nextHopIp,
      @JsonProperty(PROP_ADMINISTRATIVE_COST) int admin,
      @JsonProperty(PROP_METRIC) long metric,
      @JsonProperty(PROP_TAG) long tag); @Nonnull @Override String getNextHopInterface(); @Override RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
RipInternalRoute extends RipRoute { @Override public Builder toBuilder() { return new Builder() .setAdmin(getAdministrativeCost()) .setMetric(getMetric()) .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(getTag()); } @JsonCreator  RipInternalRoute(
      @JsonProperty(PROP_NETWORK) Prefix network,
      @JsonProperty(PROP_NEXT_HOP_IP) Ip nextHopIp,
      @JsonProperty(PROP_ADMINISTRATIVE_COST) int admin,
      @JsonProperty(PROP_METRIC) long metric,
      @JsonProperty(PROP_TAG) long tag); @Nonnull @Override String getNextHopInterface(); @Override RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }