Class ImmutableStack<T>
- java.lang.Object
-
- soot.jimple.spark.ondemand.genericutil.ImmutableStack<T>
-
public class ImmutableStack<T> extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(T entry)static <T> ImmutableStack<T>emptyStack()booleanequals(Object o)Tget(int i)static intgetMaxSize()inthashCode()booleanisEmpty()Tpeek()ImmutableStack<T>pop()ImmutableStack<T>popAll(ImmutableStack<T> other)ImmutableStack<T>push(T entry)ImmutableStack<T>pushAll(ImmutableStack<T> other)ImmutableStack<T>reverse()intsize()booleantopMatches(ImmutableStack<T> other)StringtoString()
-
-
-
Method Detail
-
getMaxSize
public static int getMaxSize()
-
emptyStack
public static final <T> ImmutableStack<T> emptyStack()
-
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)
-
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)
-
-