Package: java.util.stream

## [Java] Interface LongStream

-     public interface LongStream

  GDK enhancements for LongStream.

  displayName:
    LongStream
  receiverFqcn:
    java.util.stream.LongStream

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public long` | `size()` An alias for `count`.

- - ### Method Detail

    - #### public long size()

      An alias for `count`. Returns the count of elements for this stream. This is a terminal operator and, depending on the underlying stream, may invoke the stream pipeline, leaving it empty after this call. Care should be taken with stream pipelines that have side effects. This method should not be called on an infinite stream.

           long[] nums = [1, 2, 3]
           assert nums.longStream().size() == 3

      Returns:
        the count of elements in this stream
      See Also:
        LongStream.count
      Since:
        5.0.0