@Test public void testMultiOverlappingRouteAdd() { List<StaticRoute> routes = setupOverlappingRoutes(); assertThat(_rib.getTypedRoutes(), containsInAnyOrder(routes.toArray())); }
@Override @Nonnull public Set<R> getTypedRoutes() { if (_allRoutes == null) { _allRoutes = ImmutableSet.copyOf(_tree.getRoutes()); } return _allRoutes; }
AbstractRib implements GenericRib<R> { @Override @Nonnull public Set<R> getTypedRoutes() { if (_allRoutes == null) { _allRoutes = ImmutableSet.copyOf(_tree.getRoutes()); } return _allRoutes; } }
AbstractRib implements GenericRib<R> { @Override @Nonnull public Set<R> getTypedRoutes() { if (_allRoutes == null) { _allRoutes = ImmutableSet.copyOf(_tree.getRoutes()); } return _allRoutes; } protected  AbstractRib(boolean withBackupRoutes); protected  AbstractRib(); }
AbstractRib implements GenericRib<R> { @Override @Nonnull public Set<R> getTypedRoutes() { if (_allRoutes == null) { _allRoutes = ImmutableSet.copyOf(_tree.getRoutes()); } return _allRoutes; } protected  AbstractRib(boolean withBackupRoutes); protected  AbstractRib(); @Nonnull static RibDelta<U> importRib(
      AbstractRib<U> importingRib, AbstractRib<T> exportingRib); @Nonnull static RibDelta<AnnotatedRoute<U>> importRib(
      AnnotatedRib<U> importingRib, AbstractRib<T> exportingRib, String vrfName); @Nonnull static RibDelta<AnnotatedRoute<U>> importRib(
      AnnotatedRib<U> importingRib, AnnotatedRib<T> exportingRib); final void clear(); @Override @SuppressWarnings("unchecked") final boolean containsRoute(AbstractRouteDecorator route); @Override @Nonnull Set<AbstractRoute> getRoutes(); @Override @Nonnull Set<R> getTypedRoutes(); @Override abstract int comparePreference(R lhs, R rhs); @Override @Nonnull Set<R> longestPrefixMatch(Ip address); @Override @Nonnull Set<R> longestPrefixMatch(Ip address, int maxPrefixLength); @Nonnull RibDelta<R> mergeRouteGetDelta(R route); @Override boolean mergeRoute(R route); @Nonnull RibDelta<R> removeRouteGetDelta(R route, Reason reason); @Nonnull RibDelta<R> removeRouteGetDelta(R route); boolean removeRoute(R route); @Override boolean equals(@Nullable Object other); @Override int hashCode(); }
AbstractRib implements GenericRib<R> { @Override @Nonnull public Set<R> getTypedRoutes() { if (_allRoutes == null) { _allRoutes = ImmutableSet.copyOf(_tree.getRoutes()); } return _allRoutes; } protected  AbstractRib(boolean withBackupRoutes); protected  AbstractRib(); @Nonnull static RibDelta<U> importRib(
      AbstractRib<U> importingRib, AbstractRib<T> exportingRib); @Nonnull static RibDelta<AnnotatedRoute<U>> importRib(
      AnnotatedRib<U> importingRib, AbstractRib<T> exportingRib, String vrfName); @Nonnull static RibDelta<AnnotatedRoute<U>> importRib(
      AnnotatedRib<U> importingRib, AnnotatedRib<T> exportingRib); final void clear(); @Override @SuppressWarnings("unchecked") final boolean containsRoute(AbstractRouteDecorator route); @Override @Nonnull Set<AbstractRoute> getRoutes(); @Override @Nonnull Set<R> getTypedRoutes(); @Override abstract int comparePreference(R lhs, R rhs); @Override @Nonnull Set<R> longestPrefixMatch(Ip address); @Override @Nonnull Set<R> longestPrefixMatch(Ip address, int maxPrefixLength); @Nonnull RibDelta<R> mergeRouteGetDelta(R route); @Override boolean mergeRoute(R route); @Nonnull RibDelta<R> removeRouteGetDelta(R route, Reason reason); @Nonnull RibDelta<R> removeRouteGetDelta(R route); boolean removeRoute(R route); @Override boolean equals(@Nullable Object other); @Override int hashCode();  }