soot.jimple.spark.ondemand.genericutil
Class ImmutableStack<T>

java.lang.Object
  extended by soot.jimple.spark.ondemand.genericutil.ImmutableStack<T>

public class ImmutableStack<T>
extends Object


Method Summary
 boolean contains(T entry)
           
static
<T> ImmutableStack<T>
emptyStack()
           
 boolean equals(Object o)
           
 T get(int i)
           
static int getMaxSize()
           
 int hashCode()
           
 boolean isEmpty()
           
 T peek()
           
 ImmutableStack<T> pop()
           
 ImmutableStack<T> popAll(ImmutableStack<T> other)
           
 ImmutableStack<T> push(T entry)
           
 ImmutableStack<T> pushAll(ImmutableStack<T> other)
           
 ImmutableStack<T> reverse()
           
 int size()
           
 boolean topMatches(ImmutableStack<T> other)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getMaxSize

public static int getMaxSize()

emptyStack

public static final <T> ImmutableStack<T> emptyStack()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

push

public ImmutableStack<T> push(T entry)

peek

public T peek()

pop

public ImmutableStack<T> pop()

isEmpty

public boolean isEmpty()

size

public int size()

get

public T get(int i)

toString

public String toString()
Overrides:
toString in class Object

contains

public boolean contains(T entry)

topMatches

public boolean topMatches(ImmutableStack<T> other)

reverse

public ImmutableStack<T> reverse()

popAll

public ImmutableStack<T> popAll(ImmutableStack<T> other)

pushAll

public ImmutableStack<T> pushAll(ImmutableStack<T> other)