Package com.inrupt.rdf.wrapping.commons
Interface ValueMapping<T>
-
- Type Parameters:
T
- the type of value to convert to
- All Superinterfaces:
BiFunction<org.apache.commons.rdf.api.RDFTerm,org.apache.commons.rdf.api.Graph,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 BiFunction<org.apache.commons.rdf.api.RDFTerm,org.apache.commons.rdf.api.Graph,T>
Represents a function that converts a term in a graph to another value. Intended to be used in wrapping classes.- See Also:
Common mappings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
apply(org.apache.commons.rdf.api.RDFTerm term, org.apache.commons.rdf.api.Graph graph)
Converts a node to a value.-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
T apply(org.apache.commons.rdf.api.RDFTerm term, org.apache.commons.rdf.api.Graph graph)
Converts a node to a value.- Specified by:
apply
in interfaceBiFunction<org.apache.commons.rdf.api.RDFTerm,org.apache.commons.rdf.api.Graph,T>
- Parameters:
term
- the node to convertgraph
- the graph that serves as the context for creating the term- Returns:
- a value that represents the term
-
-