|
Scala
1.2.0.1 |
|||
Buffer
,
Stack
, and Queue
.
Method Summary | |
protected
|
def appendElem(elem: A): Unit
|
def apply(n: Int): A
Returns the n th element of this list.
|
|
def elements: Iterator[A]
Returns an iterator over all elements of this list. |
|
protected
|
var first: LinkedList[A]
|
def get(n: Int): Option[A]
Returns the n th element of this list or None
if this element does not exist.
|
|
protected
|
var last: LinkedList[A]
|
protected
|
var len: Int
|
def length: Int
Returns the length of this list. |
|
protected
|
def prependElem(elem: A): Unit
|
protected
|
def reset: Unit
|
protected override
|
def stringPrefix: String
Defines the prefix of the string representation. |
override
|
def toList: List[A]
Returns an instance of scala.List containing the same
sequence of elements.
|
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
Methods inherited from scala/Seq-class |
copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, subseq, take, toString |
Method Detail |
protected var first: LinkedList[A]
protected var last: LinkedList[A]
protected var len: Int
def length: Int
def apply(n: Int): A
n
th element of this list. This method
yields an error if the element does not exist.
def get(n: Int): Option[A]
n
th element of this list or None
if this element does not exist.
protected def prependElem(elem: A): Unit
protected def appendElem(elem: A): Unit
protected def reset: Unit
def elements: Iterator[A]
override def toList: List[A]
scala.List
containing the same
sequence of elements.
protected override def stringPrefix: String
|
Scala
1.2.0.1 |
|||