Packages

abstract class Stream[A, T[_]] extends Streamable[A, T]

A Stream performs lazy iteration. It does not cache data and fetches data only if it's required by the stream.

A

stream item's type

T

wrapper type.

Self Type
Stream[A, T]
Linear Supertypes
Streamable[A, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stream
  2. Streamable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Stream()(implicit tag: Tag[T])

    tag

    Implementation for the tag type.

Abstract Value Members

  1. abstract def headOption: T[Option[A]]
    Definition Classes
    StreamStreamable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def collect[B](pf: PartialFunction[A, B]): Stream[B, T]
  7. def collectFirst[B](pf: PartialFunction[A, B]): T[Option[B]]
  8. def count(f: (A) => Boolean): T[Int]
  9. def drop(c: Int): Stream[A, T]
    Definition Classes
    StreamStreamable
  10. def dropWhile(f: (A) => Boolean): Stream[A, T]
    Definition Classes
    StreamStreamable
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def filter(f: (A) => Boolean): Stream[A, T]
    Definition Classes
    StreamStreamable
  14. def filterNot(f: (A) => Boolean): Stream[A, T]
    Definition Classes
    StreamStreamable
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. def flatMap[B](f: (A) => Stream[B, T]): Stream[B, T]
    Definition Classes
    StreamStreamable
  17. def foldLeft[B](initial: B)(f: (B, A) => B): T[B]

    Materializes are executes the stream.

    Materializes are executes the stream.

    Definition Classes
    StreamStreamable
  18. def foreach[U](f: (A) => U): Stream[Unit, T]
    Definition Classes
    StreamStreamable
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def lastOption: T[Option[A]]

    Reads all items from the Stream and returns the last.

    Reads all items from the Stream and returns the last.

    For a more efficient one use swaydb.Map.lastOption or swaydb.Set.lastOption instead.

    Definition Classes
    StreamStreamable
  23. def map[B](f: (A) => B): Stream[B, T]
    Definition Classes
    StreamStreamable
  24. def materialize: T[ListBuffer[A]]

    Materialises/closes and processes the stream to a Seq.

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def size: T[Int]

    Folds over all elements in the Stream to calculate it's total size.

    Folds over all elements in the Stream to calculate it's total size.

    Definition Classes
    StreamStreamable
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def take(c: Int): Stream[A, T]
    Definition Classes
    StreamStreamable
  31. def takeWhile(f: (A) => Boolean): Stream[A, T]
    Definition Classes
    StreamStreamable
  32. def to[B[_]](implicit tag: Tag[B], converter: Converter[T, B]): Stream[A, B]

    Given a Tag.Converter this function converts the current Stream to another type.

  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Streamable[A, T]

Inherited from AnyRef

Inherited from Any

Ungrouped