Top Description Constructors Methods
java.util.stream

pack-priv final Class DistinctOps

extends Object
Class Inheritance
Imports
java.util.HashSet, .LinkedHashSet, .Objects, .Set, .Spliterator, java.util.concurrent.ConcurrentHashMap, java.util.concurrent.atomic.AtomicBoolean, java.util.function.IntFunction

Factory methods for transforming streams into duplicate-free streams, using Object#equals(Object) to determine equality.
Since
1.8

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static <
the type of both input and output elements
T
>
ReferencePipeline<T, T>

Returns:

the new stream
makeRef
(AbstractPipeline<?, T, ?>
a reference stream with element type T
upstream
)

Appends a "distinct" operation to the provided stream, and returns the new stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DistinctOpsback to summary
private DistinctOps()

Method Detail

makeRefback to summary
pack-priv static <T> ReferencePipeline<T, T> makeRef(AbstractPipeline<?, T, ?> upstream)

Appends a "distinct" operation to the provided stream, and returns the new stream.

Parameters
<T>
the type of both input and output elements
upstream:AbstractPipeline<?, T, ?>

a reference stream with element type T

Returns:ReferencePipeline<T, T>

the new stream