Class EvictingStack<T>
java.lang.Object
org.cyclops.cyclopscore.datastructure.EvictingStack<T>
A stack with limited size that automatically removes elements at the bottom of the stack if required.
takeLast
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EvictingStack
public EvictingStack(int size)
-
-
Method Details
-
push
-
pop
-
maxSize
public int maxSize() -
currentSize
public int currentSize()
-