java.lang.Object
dev.metaschema.core.metapath.function.library.FnRemove
Implements the XPath 3.1 fn:remove
function.
-
Method Summary
Modifier and TypeMethodDescriptionfnRemove(List<T> target, IIntegerItem positionItem) Remove the specified item atpositionfrom thesequence.
-
Method Details
-
fnRemove
@NonNull public static <T extends IItem> List<T> fnRemove(@NonNull List<T> target, @NonNull IIntegerItem positionItem) Remove the specified item atpositionfrom thesequence.- Type Parameters:
T- the type for the given Metapath sequence- Parameters:
target- the sequence of Metapath items from which we will remove the itempositionItem- the position of the item in the sequence to be removed- Returns:
sequencethe new sequence with the item removed
-