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

public final class MapEntry extends Object
Implements the XPath 3.1 map:entry function.
  • Method Details

    • entry

      @NonNull public static <T extends ICollectionValue> IMapItem<T> entry(@NonNull IAnyAtomicItem key, @NonNull T value)
      An implementation of XPath 3.1 map:entry.
      Type Parameters:
      T - the type of items in the given Metapath map
      Parameters:
      key - the Metapath map entry key
      value - the Metapath map entry value
      Returns:
      a new array containing the modification