public static <C extends Comparable<? super C>>
	Collector<C, ?, MinMax<C>> toMinMax() {
		return toMinMax(Comparator.naturalOrder());
	}
Return a {@code Collector} which calculates the minimum and maximum value.
The <i>reducing</i> objects must be comparable.
<p>
{@snippet lang="java":
final Stream<SomeObject> stream = null; // @replace substring='null' replacement="..."
final MinMax<SomeObject> moments = stream
    .collect(doubleMoments.toMinMax(comparator));
}

@param <C> the type of the input elements
@return a {@code Collector} implementing the min-max reduction
@throws java.lang.NullPointerException if the given {@code mapper} is
        {@code null}
jenetics/src/main/java/io/jenetics/stat/MinMax.java