minValue

fun <ID : Any, T : Comparable<T>> Field<ID, T>.minValue(): T?

Returns the minimum value in the field, excluding the local value.

If the field contains only the local entry, the result is null.

Return

the lowest value in the field, or null if no neighbors exist.


fun <ID : Any, T : Comparable<T>> Field<ID, T>.minValue(base: T): T

Returns the minimum between base and the minimum value found in the field.

The base value is always considered in the comparison. The field-based minimum excludes the local value.

Return

the lesser of base and the minimum field value, or base if no neighbors exist.

Parameters

base

the reference value to compare against the minimum field value.