Interface MembershipOracle<I,​D>

    • Method Detail

      • processQuery

        default void processQuery​(Query<I,​D> query)
        Processes a single query. When this method returns, the Query.answer(Object) method of the supplied object will have been called with an argument reflecting the SUL response to the respective query.

        The default implementation of this method will simply wrap the provided Query in a singleton Collection using Collections.singleton(Object). Implementations in subclasses should override this method to circumvent the Collection object creation, if possible.

        Parameters:
        query - the query to process
      • processQueries

        void processQueries​(Collection<? extends Query<I,​D>> queries)
        Processes the specified collection of queries. When this method returns, each of the contained queries Query.answer(Object) method should have been called with an argument reflecting the SUL response to the respective query.
        Parameters:
        queries - the queries to process
        See Also:
        Query.answer(Object)