java.lang.Object
dev.metaschema.core.metapath.function.library.MapPut
Implements the XPath 3.1
map:put
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V extends ICollectionValue>
IMapItem<V>put(IMapItem<V> map, IAnyAtomicItem key, V value) An implementation of XPath 3.1 map:put.
-
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 modifiedkey- the key for the value to add to the mapvalue- the value to add to the map- Returns:
- the modified map
-