@Test public void testEquals() { OspfExternalType2Route.Builder b = OspfExternalRoute.builder() .setNetwork(Ip.parse("1.1.1.1").toPrefix()) .setNextHopIp(Ip.ZERO) .setAdmin(1) .setMetric(1) .setLsaMetric(1) .setArea(1) .setCostToAdvertiser(1) .setAdvertiser("") .setOspfMetricType(OspfMetricType.E1); OspfExternalRoute r1 = b.build(); OspfExternalRoute r1DiffObj = b.build(); OspfExternalRoute r2 = b.setCostToAdvertiser(2).build(); OspfExternalRoute r2t2 = b.setOspfMetricType(OspfMetricType.E2).build(); new EqualsTester() .addEqualityGroup(r1, r1DiffObj) .addEqualityGroup(r2) .addEqualityGroup(r2t2) .testEquals(); }
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();  }