public class SizedQueue extends ArrayDeque<Double>
Modifier and Type | Field and Description |
---|---|
int |
currentItemsCount |
double |
runningSum |
int |
size |
Constructor and Description |
---|
SizedQueue() |
Modifier and Type | Method and Description |
---|---|
double |
dequeueItem() |
double |
enqueueItem(double item) |
double |
max() |
double |
min() |
add, addFirst, addLast, clear, clone, contains, descendingIterator, element, getFirst, getLast, isEmpty, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArray
addAll, containsAll, removeAll, retainAll, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAll, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream