Package org.eclipse.rdf4j.sail.helpers
Class SailUtil
java.lang.Object
org.eclipse.rdf4j.sail.helpers.SailUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Sail>
CfindSailInStack
(Sail topSail, Class<C> sailClass) Searches a stack of Sails from top to bottom for a Sail that is an instance of the suppied class or interface.
-
Constructor Details
-
SailUtil
public SailUtil()
-
-
Method Details
-
findSailInStack
Searches a stack of Sails from top to bottom for a Sail that is an instance of the suppied class or interface. The first Sail that matches (i.e. the one closest to the top) is returned.- Parameters:
topSail
- The top of the Sail stack.sailClass
- A class or interface.- Returns:
- A Sail that is an instance of sailClass, or null if no such Sail was found.
-