Interface ValueMapping<T>

  • Type Parameters:
    T - the type of value to convert to
    All Superinterfaces:
    Function<org.apache.jena.rdf.model.RDFNode,​T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ValueMapping<T>
    extends Function<org.apache.jena.rdf.model.RDFNode,​T>
    Represents a function that converts a node in a graph to another value. Intended to be used in wrapping classes.
    See Also:
    Common mappings
    • Method Detail

      • apply

        T apply​(org.apache.jena.rdf.model.RDFNode node)
        Converts a node to a value.
        Specified by:
        apply in interface Function<org.apache.jena.rdf.model.RDFNode,​T>
        Parameters:
        node - the node to convert
        Returns:
        a value that represents the term