t
scalqa

Idx.Buffer.Loader

trait Loader[A] extends AnyRef

Buffer Loader solves problem of trustless exchange of Array elements

Appending elements one by one is ways slower than copying arrays in bulk with System.arraycopy method

Collections on the other hand should not expose their private arrays in any way

The method appendArray is a compromise. It is final and can be inspected, therefore trusted to copy data from one array to another without exposing either

Ordering
  1. Alphabetic
Inherited
  1. Loader
  2. scala.AnyRef
  3. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. abstract def append(v: A): Unit

    Append element

    Append element

    Adds element to the end

    Definition Classes
    Loader
  2. final def appendArray(a: Array[A], from: Int = 0, count: Opt.Int = \/): Unit

    Append Array elements

    Append Array elements

    Adds Array elements to the end

    from specifies Array start position

    count specifies number of elements to add. If omitted, the rest of Array is added

    Definition Classes
    Loader
  3. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  4. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  5. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  6. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. final def notify(): Unit
    Definition Classes
    AnyRef
  12. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  13. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  14. def toString(): String
    Definition Classes
    AnyRef → Any
  15. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. 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