Class Max

    • Constructor Summary

      Constructors 
      Constructor Description
      Max()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <A> java.util.function.Function<A,​A> apply​(A left)
      Returns the maximum of two values.
      static <A> A apply​(A left, A right)
      Returns the maximum of two values.
      protected java.util.function.Function<java.util.List<Term>,​java.util.function.Function<Context,​java.util.function.Function<Graph,​Either<InContext<Error_>,​Term>>>> implementation()
      A dynamic/interpreted implementation of the function.
      Name name()
      The unique name of the primitive function.
      TypeScheme type()
      The datatype of the primitive function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Max

        public Max()
    • Method Detail

      • name

        public Name name()
        Description copied from class: PrimitiveFunction
        The unique name of the primitive function.
        Specified by:
        name in class PrimitiveFunction
        Returns:
        the name of this primitive function
      • implementation

        protected java.util.function.Function<java.util.List<Term>,​java.util.function.Function<Context,​java.util.function.Function<Graph,​Either<InContext<Error_>,​Term>>>> implementation()
        Description copied from class: PrimitiveFunction
        A dynamic/interpreted implementation of the function. Subclasses implement this with Either-based logic.
        Specified by:
        implementation in class PrimitiveFunction
        Returns:
        the function implementation
      • apply

        public static <A> java.util.function.Function<A,​A> apply​(A left)
        Returns the maximum of two values.
        Type Parameters:
        A - the comparable type
        Parameters:
        left - the first value
        Returns:
        a function that takes the second value and returns the maximum
      • apply

        public static <A> A apply​(A left,
                                  A right)
        Returns the maximum of two values.
        Type Parameters:
        A - the comparable type
        Parameters:
        left - the first value
        right - the second value
        Returns:
        the maximum of the two values