MinMaxComparator<T> extension
- on
-
- Comparator<
T>
- Comparator<
Methods
-
max(
T a, T b) → T -
Available on Comparator<
Returns the maximum of the two argumentsT> , provided by the MinMaxComparator extensiona
andb
. -
maxOf(
Iterable< T> iterable, {T orElse()?}) → T -
Available on Comparator<
Returns the maximum of the providedT> , provided by the MinMaxComparator extensioniterable
. -
min(
T a, T b) → T -
Available on Comparator<
Returns the minimum of the two argumentsT> , provided by the MinMaxComparator extensiona
andb
. -
minMaxOf(
Iterable< T> iterable, {({T max, T min}) orElse()?}) → ({T max, T min}) -
Available on Comparator<
Returns a tuple with the minimum and maximum of the providedT> , provided by the MinMaxComparator extensioniterable
. -
minOf(
Iterable< T> iterable, {T orElse()?}) → T -
Available on Comparator<
Returns the maximum of the providedT> , provided by the MinMaxComparator extensioniterable
.