|
Scala 2
|
class
MutableList
[ A ]
extends
java.lang.Object with
scala.Seq[A] with
scala.PartialFunction[scala.Int,A] with
scala.ScalaObjectBuffer
,
Stack
, and Queue
.Def Summary | |
protected
|
def
appendElem
( elem : A )
: scala.Unit
|
def
apply
( n : scala.Int )
: A
Returns the n th element of this list. This method
yields an error if the element does not exist.
|
|
def
elements
: scala.Iterator[A]
Returns an iterator over all elements of this list. |
|
def
get
( n : scala.Int )
: scala.Option[A]
Returns the n th element of this list or None
if this element does not exist.
|
|
def
length
: scala.Int
Returns the length of this list. |
|
protected
|
def
prependElem
( elem : A )
: scala.Unit
|
protected
|
def
reset
: scala.Unit
|
override protected
|
def
stringPrefix
: java.lang.String
|
override
|
def
toList
: scala.List[A]
Returns an instance of scala.List containing the same
sequence of elements.
|
Def Detail |
def
appendElem
( elem : A ) : scala.Unit
def
apply
( n : scala.Int ) : A
n
th element of this list. This method
yields an error if the element does not exist.def
elements
: scala.Iterator[A]
def
get
( n : scala.Int ) : scala.Option[A]
n
th element of this list or None
if this element does not exist.def
length
: scala.Int
def
prependElem
( elem : A ) : scala.Unit
def
reset
: scala.Unit
def
stringPrefix
: java.lang.String
def
toList
: scala.List[A]
scala.List
containing the same
sequence of elements.