@Test public void testToBuilder() { OspfExternalRoute r = OspfExternalRoute.builder() .setOspfMetricType(OspfMetricType.E1) .setNetwork(Prefix.parse("1.1.1.0/24")) .setMetric(1L) .setLsaMetric(2L) .setCostToAdvertiser(3L) .setAdvertiser("advertiser") .setArea(4L) .build(); assertThat(r.toBuilder().build(), equalTo(r)); assertThat(r.toBuilder().build() instanceof OspfExternalType1Route, equalTo(true)); }
public static OspfExternalRoute.Builder builder() { return OspfExternalRoute.builder().setOspfMetricType(OspfMetricType.E1); }
OspfExternalType1Route extends OspfExternalRoute { public static OspfExternalRoute.Builder builder() { return OspfExternalRoute.builder().setOspfMetricType(OspfMetricType.E1); } }
OspfExternalType1Route extends OspfExternalRoute { public static OspfExternalRoute.Builder builder() { return OspfExternalRoute.builder().setOspfMetricType(OspfMetricType.E1); } OspfExternalType1Route(
      Prefix prefix,
      Ip nextHopIp,
      int admin,
      long metric,
      long lsaMetric,
      long area,
      long costToAdvertiser,
      String advertiser,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); }
OspfExternalType1Route extends OspfExternalRoute { public static OspfExternalRoute.Builder builder() { return OspfExternalRoute.builder().setOspfMetricType(OspfMetricType.E1); } OspfExternalType1Route(
      Prefix prefix,
      Ip nextHopIp,
      int admin,
      long metric,
      long lsaMetric,
      long area,
      long costToAdvertiser,
      String advertiser,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); static OspfExternalRoute.Builder builder(); @Nonnull @Override OspfMetricType getOspfMetricType(); }
OspfExternalType1Route extends OspfExternalRoute { public static OspfExternalRoute.Builder builder() { return OspfExternalRoute.builder().setOspfMetricType(OspfMetricType.E1); } OspfExternalType1Route(
      Prefix prefix,
      Ip nextHopIp,
      int admin,
      long metric,
      long lsaMetric,
      long area,
      long costToAdvertiser,
      String advertiser,
      long tag,
      boolean nonForwarding,
      boolean nonRouting); static OspfExternalRoute.Builder builder(); @Nonnull @Override OspfMetricType getOspfMetricType();  }