t
scalqa

Stream.A.Basic.Defaults

trait Defaults[A] extends AnyRef

Stream Defaults

When creating custom streams, overriding any of the default methods can help performance

Self Type
Stream.A.Basic.Defaults[A] with Stream[A]
Ordering
  1. Alphabetic
Inherited
  1. Defaults
  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. abstract def foreach(f: Consumer[A]): Unit

    Foreach override

    Foreach override

    foreach is the most widely used Stream method, which largely determines general performance

    Default implementation looks like

    def foreach(c: Stream.Consumer[A]) = while (prime) c.accept(pump)

    If custom Stream can do better, this method should be overridden

    Definition Classes
    Defaults
  7. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. final def notify(): Unit
    Definition Classes
    AnyRef
  11. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  12. def sizeOpt: Opt.Int

    Current size option

    Current size option

    By default sizeOpt returns Opt.Void

    If custom Stream knows current size, this could greatly help optimizations

    Definition Classes
    Defaults
  13. def sortedOpt: Opt[Comparator[A]]

    Current sorted option

    Current sorted option

    By default sortedOpt returns Opt.Void

    If custom Stream is sorted, return the Ordering

    Definition Classes
    Defaults
  14. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. def typeOpt: Opt[Util.Specialized.Type]

    Data type option

    Data type option

    By default typeOpt returns Opt.Void

    All customized bases (like Stream.A.Chars)) return appropriate type

    Definition Classes
    Defaults
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. 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