t
scalqa

Stream.Interface.Preview

trait Preview[A] extends AnyRef

Preview is an extension of Stream with preview capabilities

It allows pre-load and inspect elements before they are pumped

Preview is created with a Stream.preview method

Note. If Stream.typeOpt is void, after switching into preview mode typeOpt will return type determined by the preview of the first element or void if there is none

Self Type
Stream[A] with Stream.Interface.Preview[A]
Ordering
  1. Alphabetic
Inherited
  1. Preview
  2. scala.AnyRef
  3. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  2. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  3. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  4. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  6. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. final def notify(): Unit
    Definition Classes
    AnyRef
  10. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  11. abstract def preview(cnt: Int): ~[A]

    Preview multiple elements

    Preview multiple elements

    Returns a Stream of elements waiting to be primed and pumped

    Definition Classes
    Preview
  12. abstract def previewNextOpt: Opt[A]

    Preview next element

    Preview next element

    Optionally returns next element, which can be primed and pumped

    Definition Classes
    Preview
  13. abstract def previewSize: Int

    Preview element count

    Preview element count

    If metadata sizeOpt is not empty, the value is returned

    Otherwise calls primeAll

    Definition Classes
    Preview
  14. abstract def previewSizeAtLeast(cnt: Int): Boolean

    Checks size up to a limit

    Checks size up to a limit

    Retuns true if the element count is equal or exceeding the specified

    If metadata sizeOpt is not empty, the value is tested

    Otherwise, tries to prime requested number of elements

    Definition Classes
    Preview
  15. abstract def prime(cnt: Int): Int

    Requests to get several elements ready

    Requests to get several elements ready

    Parameter indicates how many elements are requested

    Returns actual primed elements count

    Returned value can be less than requested if Stream is exhausted, or greater, if more elements are ready

    Definition Classes
    Preview
  16. def primeAll: Int

    Requests to get all elements ready

    Requests to get all elements ready

    Returns total Stream element count

    Definition Classes
    Preview
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. abstract def takeWhile(f: Filter[A]): ~[A]

    Stream while

    Stream while

    Returns a Stream of sequential elements, which pass given filter

    Note. Streamed elements are immediately removed from this Stream and buffered within the returned new Stream

    Definition Classes
    Preview
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Operator

  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