public class

UnsynchronizedStack

extends ArrayList<E>
java.lang.Object
   ↳ java.util.AbstractCollection<E>
     ↳ java.util.AbstractList<E>
       ↳ java.util.ArrayList<E>
         ↳ com.microstrategy.utils.UnsynchronizedStack

Class Overview

Provides various peek and push operations similar to the java.util.Stack class except this is unsynchronized.

Summary

[Expand]
Inherited Fields
From class java.util.AbstractList
Public Constructors
UnsynchronizedStack()
Public Methods
Object peek()
Object peekFirst()
Object pop()
Removes last object on the stack.
Object popFirst()
Removes first object in the stack.
void push(Object obj)
Equivalent to add(java.lang.Object).
[Expand]
Inherited Methods
From class java.util.ArrayList
From class java.util.AbstractList
From class java.util.AbstractCollection
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List

Public Constructors

public UnsynchronizedStack ()

Public Methods

public Object peek ()

Returns
  • last object on the stack, or null if none.

public Object peekFirst ()

Returns
  • first object on the stack.

public Object pop ()

Removes last object on the stack.

Returns
  • last object on the stack, or null if none.

public Object popFirst ()

Removes first object in the stack.

Returns
  • first object on the stack, or null if none.

public void push (Object obj)

Equivalent to add(java.lang.Object).

Parameters
obj object to be added to the end of the stack.