@Test public void testThrowsOnNullRoute() { thrown.expect(IllegalArgumentException.class); RouteAdvertisement.<StaticRoute>builder().setReason(Reason.ADD).build(); }
@Nonnull public static <T> Builder<T> builder() { return new Builder<>(); }
RouteAdvertisement { @Nonnull public static <T> Builder<T> builder() { return new Builder<>(); } }
RouteAdvertisement { @Nonnull public static <T> Builder<T> builder() { return new Builder<>(); } @VisibleForTesting  RouteAdvertisement(T route, Reason reason);  RouteAdvertisement(T route); }
RouteAdvertisement { @Nonnull public static <T> Builder<T> builder() { return new Builder<>(); } @VisibleForTesting  RouteAdvertisement(T route, Reason reason);  RouteAdvertisement(T route); static RouteAdvertisement<T> adding(T route); static RouteAdvertisement<T> replacing(T route); static RouteAdvertisement<T> withdrawing(T route); @Nonnull T getRoute(); @Nonnull Reason getReason(); boolean isWithdrawn(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); @Nonnull static Builder<T> builder(); @Nonnull Builder<T> toBuilder(); RouteAdvertisement<T> sanitizeForExport(); }
RouteAdvertisement { @Nonnull public static <T> Builder<T> builder() { return new Builder<>(); } @VisibleForTesting  RouteAdvertisement(T route, Reason reason);  RouteAdvertisement(T route); static RouteAdvertisement<T> adding(T route); static RouteAdvertisement<T> replacing(T route); static RouteAdvertisement<T> withdrawing(T route); @Nonnull T getRoute(); @Nonnull Reason getReason(); boolean isWithdrawn(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); @Nonnull static Builder<T> builder(); @Nonnull Builder<T> toBuilder(); RouteAdvertisement<T> sanitizeForExport();  }