Package com.inrupt.rdf.wrapping.rdf4j
Interface ValueMapping<T>
-
- Type Parameters:
T
- the type of value to convert to
- All Superinterfaces:
BiFunction<org.eclipse.rdf4j.model.Value,org.eclipse.rdf4j.model.Model,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.eclipse.rdf4j.model.Value,org.eclipse.rdf4j.model.Model,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 Default Methods Modifier and Type Method Description T
apply(org.eclipse.rdf4j.model.Value rdfValue, org.eclipse.rdf4j.model.Model model)
Converts a node to a value.default ValueMapping<T>
asCommons()
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
T apply(org.eclipse.rdf4j.model.Value rdfValue, org.eclipse.rdf4j.model.Model model)
Converts a node to a value.- Specified by:
apply
in interfaceBiFunction<org.eclipse.rdf4j.model.Value,org.eclipse.rdf4j.model.Model,T>
- Parameters:
rdfValue
- the node to convert- Returns:
- a value that represents the term
-
asCommons
default ValueMapping<T> asCommons()
-
-