- Enclosing interface:
- RDFList
public static interface RDFList.ReduceFn
Interface that encapsulates a function to apply to each element of a list
in turn, and passing the result to an accumulator.
-
Method Summary
-
Method Details
-
reduce
Apply a function to the given RDF node.
- Parameters:
node
- A node from the list.accumulator
- The accumulator for the reduction, which will either be an initial value passed toRDFList.reduce(org.apache.jena.rdf.model.RDFList.ReduceFn, java.lang.Object)
, or the output fromreduce
applied to the previous node in the list.- Returns:
- The result of applying the reduction function to the current node and the accumulator.
-