Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hp.hpl.jena.rdf.model
Interface RDFList.ReduceFn

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
`java.lang.Object` | `reduce(RDFNode node, java.lang.Object accumulator)` Apply a function to the given RDF node.

Method Detail

### reduce

    java.lang.Object reduce(RDFNode node,
                            java.lang.Object accumulator)

  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 to `RDFList.reduce(com.hp.hpl.jena.rdf.model.RDFList.ReduceFn, java.lang.Object)`, or the output from `reduce` applied to the previous node in the list.
  Returns:
    The result of applying the reduction function to the current node and the accumulator.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP