Class Collection_NearestFunction

  • All Implemented Interfaces:
    Expression, Function

    public class Collection_NearestFunction
    extends FunctionImpl
    Finds the nearest value to the provided one in the attribute domain.
    Since:
    12.0
    Author:
    Jody Garnett
    • Constructor Detail

      • Collection_NearestFunction

        public Collection_NearestFunction()
        Creates a new instance of Collection_MaxFunction
    • Method Detail

      • evaluate

        public Object evaluate​(Object collection)
        Description copied from class: FunctionImpl
        Default implementation simply returns the fallbackValue.

        Please override this method to produce a value based on the provided arguments.

        Specified by:
        evaluate in interface Expression
        Overrides:
        evaluate in class FunctionImpl
        Parameters:
        collection - Object being evaluated; often a Feature
        Returns:
        value for the provided object