Package org.sentrysoftware.jawk.util
Class LinkedListStackImpl<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<E>
org.sentrysoftware.jawk.util.LinkedListStackImpl<E>
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<E>
,Collection<E>
,Deque<E>
,List<E>
,Queue<E>
,MyStack<E>
A simple delegate to a LinkedList.
Unlike
java.util.Stack
,
this implementation is non-synchronized to improve performance.
It performs slower than the ArrayStackImpl version.
There is no maximum capacity which is enforced, nor is there any checks if pop() is executed on an empty stack.
- Author:
- Danny Daglas
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSequentialList
iterator
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, subList
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
LinkedListStackImpl
public LinkedListStackImpl()
-
-
Method Details
-
push
Push an item onto the stack. -
pop
Pop an item off the stack and return that item to the callee.
-