@Test public void testSort() { assertThat(Providers.sort(Arrays.asList(b, a, c)), IsIterableContainingInOrder.contains(a, b, c)); assertThat(Providers.sort(Arrays.asList(y, w, x, z)), IsIterableContainingInOrder.contains(z, y, x, w)); }
public static <P extends WeaveLifecycleProvider<?>> Iterable<P> sort(final Iterable<P> providers) { return new SortWorker<P>().sort(providers); }
Providers { public static <P extends WeaveLifecycleProvider<?>> Iterable<P> sort(final Iterable<P> providers) { return new SortWorker<P>().sort(providers); } }
Providers { public static <P extends WeaveLifecycleProvider<?>> Iterable<P> sort(final Iterable<P> providers) { return new SortWorker<P>().sort(providers); } private  Providers(); }
Providers { public static <P extends WeaveLifecycleProvider<?>> Iterable<P> sort(final Iterable<P> providers) { return new SortWorker<P>().sort(providers); } private  Providers(); static Iterable<P> sort(final Iterable<P> providers); }
Providers { public static <P extends WeaveLifecycleProvider<?>> Iterable<P> sort(final Iterable<P> providers) { return new SortWorker<P>().sort(providers); } private  Providers(); static Iterable<P> sort(final Iterable<P> providers);  }