test_class.file: code/src/test/java/com/googlecode/cqengine/resultset/ResultSetTest.java
test_class.identifier: ResultSetTest
test_case.body: @Test
      public void testStream() {
          List<String> input = asList("a", "b", "c", "d");
          IndexedCollection<String> indexedCollection = new ConcurrentIndexedCollection<String>();
          indexedCollection.addAll(input);
  
          ResultSet<String> resultSet = indexedCollection.retrieve(all(String.class), queryOptions(orderBy(ascending(selfAttribute(String.class)))));
  
          Stream<String> stream = resultSet.stream();
  
          List<String> output = stream.collect(toList());
          assertEquals(input, output);
      }
test_case.class_method_signature: ResultSetTest.testStream()
test_case.full_signature: @Test public void testStream()
test_case.identifier: testStream
test_case.invocations: asList addAll retrieve all queryOptions orderBy ascending selfAttribute stream collect toList assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testStream()
focal_class.file: code/src/main/java/com/googlecode/cqengine/resultset/ResultSet.java
focal_class.identifier: ResultSet
focal_class.interfaces: implements Iterable<O>, Closeable
focal_class.class_method_signature: ResultSet.iterator()
focal_class.full_signature: public abstract Iterator<O> iterator()
focal_class.identifier: iterator
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: Iterator<O>
focal_class.signature: Iterator<O> iterator()
focal_class.class_method_signature: ResultSet.contains(O object)
focal_class.full_signature: public abstract boolean contains(O object)
focal_class.identifier: contains
focal_class.modifiers: public abstract
focal_class.parameters: (O object)
focal_class.return: boolean
focal_class.signature: boolean contains(O object)
focal_class.class_method_signature: ResultSet.matches(O object)
focal_class.full_signature: public abstract boolean matches(O object)
focal_class.identifier: matches
focal_class.modifiers: public abstract
focal_class.parameters: (O object)
focal_class.return: boolean
focal_class.signature: boolean matches(O object)
focal_class.class_method_signature: ResultSet.getQuery()
focal_class.full_signature: public abstract Query<O> getQuery()
focal_class.identifier: getQuery
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: Query<O>
focal_class.signature: Query<O> getQuery()
focal_class.class_method_signature: ResultSet.getQueryOptions()
focal_class.full_signature: public abstract QueryOptions getQueryOptions()
focal_class.identifier: getQueryOptions
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: QueryOptions
focal_class.signature: QueryOptions getQueryOptions()
focal_class.class_method_signature: ResultSet.uniqueResult()
focal_class.full_signature: public O uniqueResult()
focal_class.identifier: uniqueResult
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: O
focal_class.signature: O uniqueResult()
focal_class.class_method_signature: ResultSet.getRetrievalCost()
focal_class.full_signature: public abstract int getRetrievalCost()
focal_class.identifier: getRetrievalCost
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getRetrievalCost()
focal_class.class_method_signature: ResultSet.getMergeCost()
focal_class.full_signature: public abstract int getMergeCost()
focal_class.identifier: getMergeCost
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMergeCost()
focal_class.class_method_signature: ResultSet.size()
focal_class.full_signature: public abstract int size()
focal_class.identifier: size
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: ResultSet.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: ResultSet.isNotEmpty()
focal_class.full_signature: public boolean isNotEmpty()
focal_class.identifier: isNotEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isNotEmpty()
focal_class.class_method_signature: ResultSet.close()
focal_class.full_signature: public abstract void close()
focal_class.identifier: close
focal_class.modifiers: public abstract
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ResultSet.spliterator()
focal_class.full_signature: public Spliterator<O> spliterator()
focal_class.identifier: spliterator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Spliterator<O>
focal_class.signature: Spliterator<O> spliterator()
focal_class.class_method_signature: ResultSet.stream()
focal_class.full_signature: public Stream<O> stream()
focal_class.identifier: stream
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Stream<O>
focal_class.signature: Stream<O> stream()
focal_method.body: public Stream<O> stream() {
          return StreamSupport.stream(this.spliterator(), false)
                  .onClose(this::close);
      }
focal_method.class_method_signature: ResultSet.stream()
focal_method.full_signature: public Stream<O> stream()
focal_method.identifier: stream
focal_method.invocations: onClose stream spliterator
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Stream<O>
focal_method.signature: Stream<O> stream()