Package: java.util.stream

## [Java] Interface BaseStream

-     public interface BaseStream

  GDK enhancements for BaseStream.

  displayName:
    BaseStream
  receiverFqcn:
    java.util.stream.BaseStream

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `<T>` | `public List<T>` | `toList()` Accumulates the elements of stream into a new List.
    `<T>` | `public Set<T>` | `toSet()` Accumulates the elements of stream into a new Set.

- - ### Method Detail

    - #### <T> public List<T> toList()

      Accumulates the elements of stream into a new List.

      Type Parameters:
        `T` - the type of element
      Returns:
        a new `java.util.List` instance
      Since:
        2.5.0

    - #### <T> public Set<T> toSet()

      Accumulates the elements of stream into a new Set.

      Type Parameters:
        `T` - the type of element
      Returns:
        a new `java.util.Set` instance
      Since:
        2.5.0