trait Loader[A] extends AnyRef
Ordering
- Alphabetic
Inherited
- Loader
- scala.AnyRef
- scala.Any
- Hide All
- Show All
Visibility
- Public
- All
Method
-
abstract
def
append(v: A): Unit
Append element
Append element
Adds element to the end
- Definition Classes
- Loader
-
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 positioncount
specifies number of elements to add. If omitted, the rest of Array is added- Definition Classes
- Loader
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Buffer Loader
solves problem of trustless exchange of Array elementsAppending 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