Interface IQueryResult<T>

    • Method Detail

      • isEmpty

        boolean isEmpty()
        Returns whether this QueryResult is empty.
        true if this QueryResult has accepted any results, and false otherwise.
      • iterator

        Iterator<T> iterator()
        Returns an iterator on the collected objects.
        Specified by:
        iterator in interface Iterable<T>
        an iterator of the collected objects.
      • toArray

        T[] toArray​(Class<T> clazz)
        Returns the collected objects as an array
        clazz - The type of array to return
        The array of results
        ArrayStoreException - the runtime type of the specified array is not a super-type of the runtime type of every collected object
      • toSet

        Set<T> toSet()
        Creates a new Set copy with the contents of this query result. The copy can be altered without any side effects on its origin.
        A detached copy of the result.
      • toUnmodifiableSet

        Set<T> toUnmodifiableSet()
        Returns a Set backed by this query result. The set is immutable.
        A Set backed by this query result.