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

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

    • put

      @NonNull public static <V extends ICollectionValue> IMapItem<V> put(@NonNull IMapItem<V> map, @NonNull IAnyAtomicItem key, @NonNull V value)
      An implementation of XPath 3.1 map:put.
      Type Parameters:
      V - the type of items in the given Metapath map
      Parameters:
      map - the map of Metapath items that is to be modified
      key - the key for the value to add to the map
      value - the value to add to the map
      Returns:
      the modified map