E
- element type of this instanceW
- element type of the wrapped instancepublic class ConvertedSpliterator<E,W> extends Object implements Spliterator<E>
ConvertedSpliterator
using a strictly invertable Converter
.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
Constructor and Description |
---|
ConvertedSpliterator(Spliterator<W> inner,
Converter<W,E> converter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
characteristics() |
boolean |
equals(Object obj) |
long |
estimateSize() |
void |
forEachRemaining(Consumer<? super E> consumer) |
Comparator<E> |
getComparator() |
Converter<W,E> |
getConverter()
Get the
Converter associated with this instance. |
long |
getExactSizeIfKnown() |
Spliterator<W> |
getWrappedSpliterator()
Get the wrapped
Spliterator . |
boolean |
hasCharacteristics(int characteristics) |
int |
hashCode() |
boolean |
tryAdvance(Consumer<? super E> action) |
Spliterator<E> |
trySplit() |
public ConvertedSpliterator(Spliterator<W> inner, Converter<W,E> converter)
inner
- wrapped instanceconverter
- element converterIllegalArgumentException
- if either parameter is nullpublic Spliterator<W> getWrappedSpliterator()
Spliterator
.Spliterator
.public Converter<W,E> getConverter()
Converter
associated with this instance.Converter
public int characteristics()
characteristics
in interface Spliterator<E>
public long estimateSize()
estimateSize
in interface Spliterator<E>
public void forEachRemaining(Consumer<? super E> consumer)
forEachRemaining
in interface Spliterator<E>
public Comparator<E> getComparator()
getComparator
in interface Spliterator<E>
public long getExactSizeIfKnown()
getExactSizeIfKnown
in interface Spliterator<E>
public boolean hasCharacteristics(int characteristics)
hasCharacteristics
in interface Spliterator<E>
public boolean tryAdvance(Consumer<? super E> action)
tryAdvance
in interface Spliterator<E>
public Spliterator<E> trySplit()
trySplit
in interface Spliterator<E>
Copyright © 2022. All rights reserved.