Class ComparisonFunction


  • public class ComparisonFunction
    extends Object
    Contains all comparable functions. Comparable functions accept two comparable (numeric and date) parameters and return a BooleanValueStream. The two parameters must be able to be cast to the same type.

    Uses:

    • Constructor Detail

      • ComparisonFunction

        public ComparisonFunction()
    • Method Detail

      • createComparisonFunction

        public static BooleanValueStream createComparisonFunction​(String name,
                                                                  ComparisonFunction.CompResultFunction comp,
                                                                  AnalyticsValueStream... params)
        Create a comparison mapping function, comparing two analytics value (streams) of the same type.
        Parameters:
        name - name of the function
        comp - function to find the result of a comparison
        params - the parameters to compare
        Returns:
        an instance of the requested comparison function using the given parameters