|
Scala 2
v2.1.3 |
class
ArrayBuffer
[ A ]
extends
java.lang.Object with
scala.collection.mutable.Buffer[A] with
scala.collection.mutable.ResizableArray[A] with
scala.ScalaObjectConstructor Summary | |
def
this
|
Def Summary | |
override
|
def
++
( iter : scala.Iterable[A] )
: scala.collection.mutable.Buffer[A]
Appends a number of elements provided by an iterable object via its elements method. The identity of the
buffer is returned.
|
override
|
def
++:
( iter : scala.Iterable[A] )
: scala.collection.mutable.Buffer[A]
Prepends a number of elements provided by an iterable object via its elements method. The identity of the
buffer is returned.
|
def
+:
( elem : A )
: scala.collection.mutable.Buffer[A]
Prepend a single element to this buffer and return the identity of the buffer. |
|
def
+=
( elem : A )
: scala.Unit
Append a single element to this buffer and return the identity of the buffer. |
|
def
apply
( n : scala.Int )
: A
|
|
def
clear
: scala.Unit
Clears the buffer contents. |
|
override
|
def
clone
: scala.collection.mutable.Buffer[A]
Return a clone of this buffer. |
override
|
def
equals
( obj : scala.Any )
: scala.Boolean
Checks if two buffers are structurally identical. |
def
insertAll
( n : scala.Int , iter : scala.Iterable[A] )
: scala.Unit
Inserts new elements at the index n . Opposed to method
update , this method will not replace an element with a
one. Instead, it will insert a new element at index n .
|
|
def
remove
( n : scala.Int )
: A
Removes the element on a given index position. |
|
override protected
|
def
stringPrefix
: java.lang.String
Defines the prefix of the string representation. |
def
update
( n : scala.Int , newelem : A )
: scala.Unit
Replace element at index n with the new element
newelem .
|
Constructor Detail |
def
this
Def Detail |
def
++
( iter : scala.Iterable[A] ) : scala.collection.mutable.Buffer[A]
elements
method. The identity of the
buffer is returned.def
++:
( iter : scala.Iterable[A] ) : scala.collection.mutable.Buffer[A]
elements
method. The identity of the
buffer is returned.def
+:
( elem : A ) : scala.collection.mutable.Buffer[A]
def
+=
( elem : A ) : scala.Unit
def
apply
( n : scala.Int ) : A
def
clear
: scala.Unit
def
clone
: scala.collection.mutable.Buffer[A]
ArrayBuffer
with the same elements.def
equals
( obj : scala.Any ) : scala.Boolean
def
insertAll
( n : scala.Int , iter : scala.Iterable[A] ) : scala.Unit
n
. Opposed to method
update
, this method will not replace an element with a
one. Instead, it will insert a new element at index n
.def
remove
( n : scala.Int ) : A
def
stringPrefix
: java.lang.String
def
update
( n : scala.Int , newelem : A ) : scala.Unit
n
with the new element
newelem
.