T - The type of elements in the container.TContainer - The type of the specified container.public class Stack64<T,TContainer extends IContainer64<T> & IBackSequence<T>>
extends java.lang.Object
| Constructor and Description |
|---|
Stack64(TContainer data)
Creates a stack with an underlying container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Clear()
Erases all of the stack's elements.
|
TContainer |
Container()
Gets the underlying container of the current instance.
|
boolean |
Empty()
Returns true only if the stack does not contain any elements.
|
boolean |
equals(java.lang.Object obj)
Tests whether this instance is equal to a specified object.
|
boolean |
equals(Stack64<T,TContainer> x)
Tests whether this instance is equal to a specified Stack64.
|
int |
hashCode()
Returns the hash code for this instance.
|
long |
MaxSize()
Returns the maximum possible size of the stack.
|
T |
Peek()
Returns the object at the top of the stack without removing it.
|
void |
Pop()
Removes the element at the top of the stack.
|
void |
Push(T item)
Inserts an element at the top of the stack.
|
long |
Size()
Returns the number of elements contained in the stack.
|
public Stack64(TContainer data)
data - The underlying container object.public TContainer Container()
public long Size()
public long MaxSize()
public boolean Empty()
public T Peek()
java.lang.RuntimeException - When the stack is empty.public void Push(T item)
item - The element to be inserted at the top
of the stack.java.lang.RuntimeException - When the stack is full.public void Pop()
java.lang.RuntimeException - When the stack is empty.public void Clear()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - An object to compare with this instance.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(Stack64<T,TContainer> x)
x - A Stack64 to compare with this instance.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.