|
Scala 2
|
class
StackProxy
[ A ]
extends
Stack with
SeqProxy with
ScalaObjectDef Summary | |
override
|
def
++=
( it : Iterator )
: scala.Unit
Pushes all elements provided by an iterator on top of the stack. The elements are pushed in the order they are given out by the iterator. |
override
|
def
++=
( iter : Iterable )
: scala.Unit
Pushes all elements provided by an Iterable object
on top of the stack. The elements are pushed in the order they
are given out by the iterator.
|
override
|
def
+=
( elem : A )
: scala.Unit
Pushes a single element on top of the stack. |
override
|
def
apply
( n : scala.Int )
: A
Access element number n .
|
override
|
def
clear
: scala.Unit
Removes all elements from the stack. After this operation completed, the stack will be empty. |
override
|
def
clone
: Stack
This method clones the stack. |
override
|
def
elements
: Iterator
Returns an iterator over all elements on the stack. This iterator is stable with respect to state changes in the stack object; i.e. such changes will not be reflected in the iterator. The iterator issues elements in the order they were inserted into the stack (FIFO order). |
override
|
def
isEmpty
: scala.Boolean
Checks if the stack is empty. |
override
|
def
length
: scala.Int
Returns the length of this stack. |
override
|
def
pop
: A
Removes the top element from the stack. |
override
|
def
push
( elems : scala.<repeated> )
: scala.Unit
Pushes a sequence of elements on top of the stack. The first element is pushed first, etc. |
def
self
: Stack
|
|
override
|
def
toList
: List
Creates a list of all stack elements in FIFO order. |
override
|
def
top
: A
Returns the top element of the stack. This method will not remove the element from the stack. An error is signaled if there is no element on the stack. |
Def Detail |
def
++=
( it : Iterator ) : scala.Unit
def
++=
( iter : Iterable ) : scala.Unit
Iterable
object
on top of the stack. The elements are pushed in the order they
are given out by the iterator.def
+=
( elem : A ) : scala.Unit
def
apply
( n : scala.Int ) : A
n
.n
.def
clear
: scala.Unit
def
clone
: Stack
def
elements
: Iterator
def
isEmpty
: scala.Boolean
def
length
: scala.Int
def
pop
: A
def
push
( elems : scala.<repeated> ) : scala.Unit
def
self
: Stack
def
toList
: List
def
top
: A