java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.ArrayBlockingQueue<E>
eu.hansolo.fx.monitor.tools.FixedSizeQueue<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,BlockingQueue<E>,Queue<E>
public class FixedSizeQueue<E> extends ArrayBlockingQueue<E>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FixedSizeQueue(int size) -
Method Summary
Modifier and Type Method Description booleanadd(E element)EgetElementAt(int index)Methods inherited from class java.util.concurrent.ArrayBlockingQueue
clear, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueue
addAll, element, removeMethods inherited from class java.util.AbstractCollection
containsAll, isEmptyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArray
-
Constructor Details
-
FixedSizeQueue
public FixedSizeQueue(int size)
-
-
Method Details
-
add
- Specified by:
addin interfaceBlockingQueue<E>- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceQueue<E>- Overrides:
addin classArrayBlockingQueue<E>
-
getElementAt
-