distinct abstract method

IntStream distinct()

Returns a stream with duplicate elements removed.

Example

final unique = IntStream.of([1, 2, 2, 3, 3, 3])
    .distinct();

Implementation

IntStream distinct();