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) -> Bool

    Parameters

    position

    The value to be checked against the searching element.

    Return Value

    true if the value matches, otherwise false.

  • Determines if the searching element is in the minimum range compared to the given value.

    Declaration

    Swift

    func isMinimumRange(_ value: Double) -> Bool

    Parameters

    value

    The value to compare against the searching element.

    Return Value

    true if the searching element is in the minimum range, otherwise false.