@Test public void testToBuilder() { OspfIntraAreaRoute r = OspfIntraAreaRoute.builder() .setNetwork(Prefix.parse("1.1.1.0/24")) .setMetric(1L) .setArea(2L) .build(); assertThat(r.toBuilder().build(), equalTo(r)); }
@Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(_admin) .setMetric(_metric) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(_tag) .setArea(getArea()); }
OspfIntraAreaRoute extends OspfInternalRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(_admin) .setMetric(_metric) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(_tag) .setArea(getArea()); } }
OspfIntraAreaRoute extends OspfInternalRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(_admin) .setMetric(_metric) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(_tag) .setArea(getArea()); } OspfIntraAreaRoute(
      Prefix network,
      Ip nextHopIp,
      int admin,
      long metric,
      long area,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); }
OspfIntraAreaRoute extends OspfInternalRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(_admin) .setMetric(_metric) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(_tag) .setArea(getArea()); } OspfIntraAreaRoute(
      Prefix network,
      Ip nextHopIp,
      int admin,
      long metric,
      long area,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); @Nonnull @Override RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
OspfIntraAreaRoute extends OspfInternalRoute { @Override public Builder toBuilder() { return builder() .setNetwork(getNetwork()) .setNextHopIp(getNextHopIp()) .setAdmin(_admin) .setMetric(_metric) .setNonForwarding(getNonForwarding()) .setNonRouting(getNonRouting()) .setTag(_tag) .setArea(getArea()); } OspfIntraAreaRoute(
      Prefix network,
      Ip nextHopIp,
      int admin,
      long metric,
      long area,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); @Nonnull @Override RoutingProtocol getProtocol(); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }