Class LimitedSizeStack<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<E>
-
- java.util.Stack<E>
-
- net.sourceforge.pmd.util.fxdesigner.util.LimitedSizeStack<E>
-
- Type Parameters:
E
- Element type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
,java.util.RandomAccess
public class LimitedSizeStack<E> extends java.util.Stack<E>
Stack with a limited size, without duplicates, without null value. Used to store recent files.- Since:
- 6.0.0
- Author:
- Clément Fournier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LimitedSizeStack(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
push(E item)
-
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
-