Class IteratorUtils.IteratorRelatedSourceOps<T>
java.lang.Object
scala.AnyVal
com.here.platform.data.client.utils.IteratorUtils.IteratorRelatedSourceOps<T>
- Enclosing class:
- IteratorUtils
public static class IteratorUtils.IteratorRelatedSourceOps<T>
extends scala.AnyVal
Iterator-related operations of Source[T, NotUsed].
-
Constructor Summary
ConstructorsConstructorDescriptionIteratorRelatedSourceOps(org.apache.pekko.stream.scaladsl.Source<T, org.apache.pekko.NotUsed> source) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.stream.scaladsl.Source<T,org.apache.pekko.NotUsed> source()scala.collection.Iterator<T>toIterator(org.apache.pekko.stream.Materializer materializer) Convert Source[T, NotUsed] to Iterator[T].
-
Constructor Details
-
IteratorRelatedSourceOps
public IteratorRelatedSourceOps(org.apache.pekko.stream.scaladsl.Source<T, org.apache.pekko.NotUsed> source)
-
-
Method Details
-
source
-
toIterator
Convert Source[T, NotUsed] to Iterator[T].- Parameters:
materializer- Pekko materializer used to convert Source to Iterator.- Returns:
- converted Iterator[T]
-