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

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

    • get

      @Nullable public static <V extends ICollectionValue> V get(@NonNull IMapItem<V> map, @NonNull IAnyAtomicItem key)
      An implementation of XPath 3.1 map:get.
      Type Parameters:
      V - the type of items in the given Metapath map
      Parameters:
      map - the map of Metapath items that is the target of retrieval
      key - the key for the item to retrieve
      Returns:
      the retrieved item