|
Scala
1.4.0.3 |
|||
Method Summary | |
override
|
def ++=(iter: Iterable[A]): Unit
Pushes all elements provided by an Iterable object
on top of the stack.
|
override
|
def ++=(it: Iterator[A]): Unit
Pushes all elements provided by an iterator on top of the stack. |
override
|
def +=(elem: A): Unit
Pushes a single element on top of the stack. |
override
|
def apply(n: Int): A
Access element number n .
|
override
|
def clear: Unit
Removes all elements from the stack. |
override
|
def clone(): Stack[A]
This method clones the stack. |
override
|
def elements: Iterator[A]
Returns an iterator over all elements on the stack. |
override
|
def isEmpty: Boolean
Checks if the stack is empty. |
override
|
def length: Int
Returns the length of this stack. |
override
|
def pop: A
Removes the top element from the stack. |
override
|
def push(elems: A*): Unit
Pushes a sequence of elements on top of the stack. |
abstract
|
def self: Stack[A]
|
override
|
def toList: List[A]
Creates a list of all stack elements in FIFO order. |
override
|
def top: A
Returns the top element of the stack. |
Methods inherited from java/lang/Object-class |
eq, finalize, getClass, ne, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
concat |
Methods inherited from scala/IterableProxy-class |
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
Methods inherited from scala/Proxy-class |
equals, hashCode, toString |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Methods inherited from scala/Seq-class |
concat |
Methods inherited from scala/SeqProxy-class |
copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, subseq, take |
Methods inherited from scala/collection/mutable/MutableList-class |
appendElem, first, get, last, len, prependElem, reset, stringPrefix |
Method Detail |
abstract def self: Stack[A]
override def apply(n: Int): A
n
.
n
.
override def length: Int
override def isEmpty: Boolean
override def +=(elem: A): Unit
elem
-
the element to push onto the stack
override def ++=(iter: Iterable[A]): Unit
Iterable
object
on top of the stack. The elements are pushed in the order they
are given out by the iterator.
iter
-
an iterable object
override def ++=(it: Iterator[A]): Unit
iter
-
an iterator
override def push(elems: A*): Unit
elems
-
a sequence of elements
override def top: A
override def pop: A
override def clear: Unit
override def elements: Iterator[A]
override def toList: List[A]
override def clone(): Stack[A]
|
Scala
1.4.0.3 |
|||