Class CollectingRDFHandler<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      CollectingRDFHandler​(java.util.function.Consumer<Statement> theConsumer, java.util.function.Supplier<T> theResult)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(Statement theStmt)
      Event for when a statement was encountered
      T result()
      Return the result of the collected data
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectingRDFHandler

        public CollectingRDFHandler​(java.util.function.Consumer<Statement> theConsumer,
                                    java.util.function.Supplier<T> theResult)
    • Method Detail

      • handle

        public void handle​(@Nonnull
                           Statement theStmt)
        Event for when a statement was encountered
        Parameters:
        theStmt - the statement
      • result

        public T result()
        Return the result of the collected data
        Returns:
        the result