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.
@FunctionalInterface public interface GetStatementOptional
Either supplies a statement matching the given pattern, orOptional.empty()
otherwise.- Author:
- Peter Ansell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Statement>
get(Resource subject, IRI predicate, Value object, Resource... contexts)
Either supplies a statement matching the given pattern, orOptional.empty()
otherwise.
-
-
-
Method Detail
-
get
Optional<Statement> get(Resource subject, IRI predicate, Value object, Resource... contexts)
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.
-
-