public class TakeWhileSpliterator<T> extends Object implements Spliterator<T>
借鉴自StreamEx
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED| Modifier and Type | Method and Description |
|---|---|
int |
characteristics() |
static <T> TakeWhileSpliterator<T> |
create(Spliterator<T> source,
Predicate<? super T> predicate) |
long |
estimateSize() |
Comparator<? super T> |
getComparator() |
boolean |
tryAdvance(Consumer<? super T> action) |
Spliterator<T> |
trySplit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, getExactSizeIfKnown, hasCharacteristicspublic static <T> TakeWhileSpliterator<T> create(Spliterator<T> source, Predicate<? super T> predicate)
public boolean tryAdvance(Consumer<? super T> action)
tryAdvance in interface Spliterator<T>public Spliterator<T> trySplit()
trySplit in interface Spliterator<T>public long estimateSize()
estimateSize in interface Spliterator<T>public int characteristics()
characteristics in interface Spliterator<T>public Comparator<? super T> getComparator()
getComparator in interface Spliterator<T>Copyright © 2025. All rights reserved.