maxIDWith

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

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

Return

the ID 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.