Top Description Methods
org.hibernate.internal.util.collections

public Interface Stack<T>

Known Direct Implementers
org.hibernate.internal.util.collections.StandardStack
Type Parameters
<T>
The type of things stored in the stack

Stack implementation exposing useful methods for Hibernate needs.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Remove all elements from the stack

public int
depth()

How many elements are currently on the stack?

public T
getCurrent()

The element currently at the top of the stack

public boolean
isEmpty()

Are there no elements currently in the stack?

public T
pop()

Pop (remove and return) the current element off the stack

public void
push(T newCurrent)

Push the new element on the top of the stack

Method Detail

clearback to summary
public void clear()

Remove all elements from the stack

depthback to summary
public int depth()

How many elements are currently on the stack?

getCurrentback to summary
public T getCurrent()

The element currently at the top of the stack

isEmptyback to summary
public boolean isEmpty()

Are there no elements currently in the stack?

popback to summary
public T pop()

Pop (remove and return) the current element off the stack

pushback to summary
public void push(T newCurrent)

Push the new element on the top of the stack