Interface Query<Result>

    • Method Detail

      • findAll

        @NotNull
        Collection<Result> findAll()
        Get all of the results in the Collection
        Returns:
        results in a collection or empty collection if no results found.
      • findFirst

        @Nullable
        Result findFirst()
        Get the first result or null if no results have been found.
        Returns:
        first result of the search or null if no results.
      • forEach

        boolean forEach​(@NotNull
                        Processor<Result> consumer)
        Process search results one-by-one. All the results will be subsequently fed to a consumer passed.
        Parameters:
        consumer - - a processor search results should be fed to.
        Returns:
        true if the search was completed normally, false if the occurrence processing was cancelled by the processor.