Interface BooleanQueryResult

All Superinterfaces:
AutoCloseable, CloseableIterator<Boolean>, Iterator<Boolean>, QueryResult<Boolean>
All Known Implementing Classes:
IteratorAsBooleanQueryResult

public interface BooleanQueryResult extends QueryResult<Boolean>

Result of a `boolean` query.

Since:
1.0
Version:
1.0
Author:
Michael Grove
Implementation Notes:
While results are represented as a Stream<Boolean> there is only a single result for a boolean query; true or false so only one result should ever be expected. Use booleanValue() to obtain the single result.
  • Method Details

    • booleanValue

      default boolean booleanValue()
      Returns the single result and closes the result set
      Returns:
      the result
      Implementation Notes:
      The result set is closed as a side effect of this call