java.lang.Object
dev.metaschema.core.metapath.function.library.MapContains
Implements the XPath 3.1 map:contains
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V extends ICollectionValue>
booleancontains(IMapItem<V> map, IAnyAtomicItem key) An implementation of XPath 3.1 map:contains.
-
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 retrievalkey- the key for the item to retrieve- Returns:
trueif the key exists in the map, orfalseotherwise
-