java.lang.Object
dev.metaschema.core.metapath.function.library.FnMinMax

public final class FnMinMax extends Object
Implements the XPath 3.1 fn:min and fn:max functions.
  • Method Details

    • min

      @Nullable public static IAnyAtomicItem min(@NonNull List<? extends IAnyAtomicItem> items)
      An implementation of XPath 3.1 fn:min.
      Parameters:
      items - the items to find the minimum value for
      Returns:
      the average
    • max

      @Nullable public static IAnyAtomicItem max(@NonNull List<? extends IAnyAtomicItem> items)
      An implementation of XPath 3.1 fn:max.
      Parameters:
      items - the items to find the maximum value for
      Returns:
      the average