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

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

    • contains

      public static <V extends ICollectionValue> boolean contains(@NonNull IMapItem<V> map, @NonNull IAnyAtomicItem key)
      An implementation of XPath 3.1 map:contains.
      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:
      true if the key exists in the map, or false otherwise