Class EntryStreamable<K,V,C extends IStreamable<V>,D extends IStreamable<IMapEntry<K,C>>>
java.lang.Object
org.javimmutable.collections.iterators.EntryStreamable<K,V,C,D>
- All Implemented Interfaces:
Iterable<IMapEntry<K,,V>> IStreamable<IMapEntry<K,,V>> SplitableIterable<IMapEntry<K,V>>
public class EntryStreamable<K,V,C extends IStreamable<V>,D extends IStreamable<IMapEntry<K,C>>>
extends Object
implements IStreamable<IMapEntry<K,V>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintiterator()Overridden here to require implementations to return a SplitableIterator rather than a basic Iterator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.javimmutable.collections.IStreamable
parallelStream, spliterator, streamMethods inherited from interface org.javimmutable.collections.SplitableIterable
forEachThrows, indexedForEach, indexedForEachThrows, reduce, reduceThrows
-
Constructor Details
-
EntryStreamable
-
-
Method Details
-
iterator
Description copied from interface:IStreamableOverridden here to require implementations to return a SplitableIterator rather than a basic Iterator. This is necessary to allow composition of new objects from methods like keys() and values().- Specified by:
iteratorin interfaceIStreamable<K>- Specified by:
iteratorin interfaceIterable<K>- Specified by:
iteratorin interfaceSplitableIterable<K>
-
getSpliteratorCharacteristics
public int getSpliteratorCharacteristics()- Specified by:
getSpliteratorCharacteristicsin interfaceIStreamable<K>- Returns:
- characteristics value used when creating Spliterators
-