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

public final class ArrayHead extends Object
Implements the XPath 3.1 array:head function.
  • Method Details

    • head

      @Nullable public static <T extends ICollectionValue> T head(@NonNull IArrayItem<T> array)
      An implementation of XPath 3.1 array:head.
      Type Parameters:
      T - the type of items in the given Metapath array
      Parameters:
      array - the array to get the head item from
      Returns:
      the head item