getClosest

open fun getClosest(key: T): R

Returns the closest possible value for the given key.

Return

the closest value to the input key

Parameters

key

the input key