@Test public void toStrictlyImproving() { final ISeq<Integer> values = new Random().ints(0, 100) .boxed() .limit(500) .flatMap(MinMax.toStrictlyImproving(Comparator.naturalOrder())) .collect(ISeq.toISeq()); Assert.assertTrue(values.isSorted()); }
public static <T> Function<T, Stream<T>> toStrictlyImproving(final Comparator<? super T> comparator) { return Streams.toStrictlyImproving(comparator); }
MinMax implements Consumer<C> { public static <T> Function<T, Stream<T>> toStrictlyImproving(final Comparator<? super T> comparator) { return Streams.toStrictlyImproving(comparator); } }
MinMax implements Consumer<C> { public static <T> Function<T, Stream<T>> toStrictlyImproving(final Comparator<? super T> comparator) { return Streams.toStrictlyImproving(comparator); } private  MinMax(final Comparator<? super C> comparator); }
MinMax implements Consumer<C> { public static <T> Function<T, Stream<T>> toStrictlyImproving(final Comparator<? super T> comparator) { return Streams.toStrictlyImproving(comparator); } private  MinMax(final Comparator<? super C> comparator); @Override void accept(final C object); MinMax<C> combine(final MinMax<C> other); long count(); C min(); C max(); boolean sameState(final MinMax<C> other); @Override String toString(); static T min(final Comparator<? super T> comp, final T a, final T b); static T max(final Comparator<? super T> comp, final T a, final T b); static Collector<T, ?, MinMax<T>> toMinMax(final Comparator<? super T> comparator); static Collector<C, ?, MinMax<C>> toMinMax(); static MinMax<T> of(final Comparator<? super T> comparator); static MinMax<C> of(); static Function<C, Stream<C>> toStrictlyIncreasing(); static Function<C, Stream<C>> toStrictlyDecreasing(); static Function<T, Stream<T>> toStrictlyImproving(final Comparator<? super T> comparator); }
MinMax implements Consumer<C> { public static <T> Function<T, Stream<T>> toStrictlyImproving(final Comparator<? super T> comparator) { return Streams.toStrictlyImproving(comparator); } private  MinMax(final Comparator<? super C> comparator); @Override void accept(final C object); MinMax<C> combine(final MinMax<C> other); long count(); C min(); C max(); boolean sameState(final MinMax<C> other); @Override String toString(); static T min(final Comparator<? super T> comp, final T a, final T b); static T max(final Comparator<? super T> comp, final T a, final T b); static Collector<T, ?, MinMax<T>> toMinMax(final Comparator<? super T> comparator); static Collector<C, ?, MinMax<C>> toMinMax(); static MinMax<T> of(final Comparator<? super T> comparator); static MinMax<C> of(); static Function<C, Stream<C>> toStrictlyIncreasing(); static Function<C, Stream<C>> toStrictlyDecreasing(); static Function<T, Stream<T>> toStrictlyImproving(final Comparator<? super T> comparator);  }