Class DistinctSpliterator<T>
java.lang.Object
one.util.streamex.Internals.Box<T>
one.util.streamex.DistinctSpliterator<T>
- All Implemented Interfaces:
Consumer<T>, Spliterator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate AtomicLongprivate final Spliterator<T> Fields inherited from class Internals.Box
aFields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionDistinctSpliterator(Spliterator<T> source, long atLeast) DistinctSpliterator(Spliterator<T> source, long atLeast, AtomicLong nullCounter, Map<T, Long> counts) -
Method Summary
Modifier and TypeMethodDescriptionintlongvoidforEachRemaining(Consumer<? super T> action) Comparator<? super T> booleantryAdvance(Consumer<? super T> action) trySplit()Methods inherited from class Internals.Box
accept, asOptional, partialCollectorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Spliterator
getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
source
-
nullCounter
-
counts
-
atLeast
private final long atLeast
-
-
Constructor Details
-
DistinctSpliterator
DistinctSpliterator(Spliterator<T> source, long atLeast, AtomicLong nullCounter, Map<T, Long> counts) -
DistinctSpliterator
DistinctSpliterator(Spliterator<T> source, long atLeast)
-
-
Method Details
-
tryAdvance
- Specified by:
tryAdvancein interfaceSpliterator<T>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceSpliterator<T>
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<T>
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<T>
-
characteristics
public int characteristics()- Specified by:
characteristicsin interfaceSpliterator<T>
-
getComparator
- Specified by:
getComparatorin interfaceSpliterator<T>
-