SearchElement
public protocol SearchElement
A protocol that defines methods for searching elements.
-
Checks if the given value matches the searching element.
Declaration
Swift
func isMatch(position: Double) -> BoolParameters
positionThe value to be checked against the searching element.
Return Value
trueif the value matches, otherwisefalse. -
Determines if the searching element is in the minimum range compared to the given value.
Declaration
Swift
func isMinimumRange(_ value: Double) -> BoolParameters
valueThe value to compare against the searching element.
Return Value
trueif the searching element is in the minimum range, otherwisefalse.