Interface BooleanQueryResult

  • All Superinterfaces:
    java.lang.AutoCloseable, CloseableIterator<java.lang.Boolean>, java.util.Iterator<java.lang.Boolean>, QueryResult<java.lang.Boolean>
    All Known Implementing Classes:
    IteratorAsBooleanQueryResult

    public interface BooleanQueryResult
    extends QueryResult<java.lang.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 Detail

      • 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