getDouble

open override fun getDouble(key: Any?): Double

Return the weight associated with key (first occurrence), or the configured defaultReturnValue if the key is not present.

This method performs a linear search (indexOf) to locate the key, so complexity is O(n).

Return

weight for key, or defaultReturnValue if absent

Parameters

key

the element to query