Package org.eclipse.rdf4j.model.util
Interface GetStatementOptional
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Either supplies a statement matching the given pattern, or
Optional.empty()
otherwise.- Author:
- Peter Ansell
-
Method Summary
-
Method Details
-
get
Either supplies a statement matching the given pattern, orOptional.empty()
otherwise.- Parameters:
subject
- AResource
to be used to match to statements.predicate
- AnIRI
to be used to match to statements.object
- AValue
to be used to match to statements.contexts
- An array of contextResource
objects, or left out (not null) to select from all contexts.- Returns:
- An
Optional
either containing a single statement matching the pattern orOptional.empty()
otherwise.
-