Class SpliteratorMapper<E,S>

java.lang.Object
org.infinispan.commons.util.SpliteratorMapper<E,S>
All Implemented Interfaces:
AutoCloseable, Spliterator<S>, CloseableSpliterator<S>

public class SpliteratorMapper<E,S> extends Object implements CloseableSpliterator<S>
A spliterator that has been mapped from another spliterator. This is nice to only lazily convert these values, so that you can convert across multiple threads or if the entire spliterator is not consumed.

This spliterator will always throw an IllegalStateException upon invocation of Spliterator.getComparator() since there is no trivial way of converting this with a mapper.

Since:
9.0
Author:
wburns