Class Range

  • All Implemented Interfaces:
    Serializable, Function

    public class Range
    extends PureFunction
    Implements the logic behind the range function. The range function can take in a single string of the form 'a, b, c' or three integers a, b, c where a and b represents the first (inclusive) and last (exclusive) numbers in the range respectively. If b is not given, a defaults to the range end and 0 becomes the range start. c is optional and represents the step (increment) for the generated sequence.
    See Also:
    Serialized Form
    • Constructor Detail

      • Range

        public Range()
    • Method Detail

      • call

        public Object call​(Object[] args)
        Description copied from class: PureFunction
        Computes the value of the function on the given arguments
        Specified by:
        call in class PureFunction
        Parameters:
        args - the values of the arguments
        Returns:
        the return value of the function
      • getDescription

        public String getDescription()
      • getParams

        public String getParams()
      • getReturns

        public String getReturns()