maxValueWith

fun <ID : Any, T> Field<ID, T>.maxValueWith(reductionType: ReductionType = ExcludingSelf, comparator: Comparator<FieldEntry<ID, T>>): T?

Returns the value of the entry that yields the largest value according to the given comparator.

Return

the value of the entry with the greatest ordering, or null if none.

Parameters

reductionType

specifies whether to include the local entry in the comparison (default is ExcludingSelf).

comparator

the comparator used to determine ordering between entries.