MinMaxComparator<T> extension

on

Methods

max(T a, T b) → T

Available on Comparator<T>, provided by the MinMaxComparator extension

Returns the maximum of the two arguments a and b.
maxOf(Iterable<T> iterable, {T orElse()?}) → T

Available on Comparator<T>, provided by the MinMaxComparator extension

Returns the maximum of the provided iterable.
min(T a, T b) → T

Available on Comparator<T>, provided by the MinMaxComparator extension

Returns the minimum of the two arguments a and b.
minMaxOf(Iterable<T> iterable, {({T max, T min}) orElse()?}) → ({T max, T min})

Available on Comparator<T>, provided by the MinMaxComparator extension

Returns a tuple with the minimum and maximum of the provided iterable.
minOf(Iterable<T> iterable, {T orElse()?}) → T

Available on Comparator<T>, provided by the MinMaxComparator extension

Returns the maximum of the provided iterable.