Class Val<T>

    • Method Detail

      • name

        public final String name()
        Description copied from interface: Op
        Return the name of the operation.
        Specified by:
        name in interface Op<T>
        Returns:
        the name of the operation
      • value

        public abstract T value()
        Return the constant value.
        Returns:
        the constant value
      • apply

        public final T apply​(T[] value)
        The apply method will always returns the value().
        Specified by:
        apply in interface Function<T[],​T>
        Parameters:
        value - the input parameters will be ignored
        Returns:
        always value()
      • arity

        public final int arity()
        The arity of Val objects is always zero.
        Specified by:
        arity in interface Op<T>
        Returns:
        always zero