public class SequenceMapper extends java.lang.Object implements MappingFunction
MappingFunction
that wraps
a function typically supplied as a lambda expression.
NOTE: Java allows a lambda expression to be used wherever a MappingFunction
is needed, but C# does not (it's not possible in C# to have a class implementing
a delegate). So if a lambda expression is wanted, use an SequenceMapper
as a wrapper.
Modifier and Type | Class and Description |
---|---|
static interface |
SequenceMapper.Lambda |
Modifier and Type | Method and Description |
---|---|
SequenceIterator |
map(Item item)
Map one item to a sequence
|
static SequenceMapper |
of(SequenceMapper.Lambda lambda) |
public static SequenceMapper of(SequenceMapper.Lambda lambda)
public SequenceIterator map(Item item) throws XPathException
map
in interface MappingFunction
item
- The input item to be mapped.XPathException
- if a dynamic error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.