Package: java.util.stream

## [Java] Interface IntStream

-     public interface IntStream

  GDK enhancements for IntStream.

  displayName:
    IntStream
  receiverFqcn:
    java.util.stream.IntStream

- - ### 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.

           int[] nums = [1, 2, 3]
           assert nums.intStream().size() == 3

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