AbstractQueue (Java SE 12 & JDK 12 )
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractQueue()Constructor for use by subclasses.
-
Method Summary
Modifier and Type Method Description booleanadd(E e)Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning
trueupon success and throwing anIllegalStateExceptionif no space is currently available.booleanaddAll(Collection<? extends E> c)Adds all of the elements in the specified collection to this queue.
voidclear()Removes all of the elements from this queue.
Eelement()Retrieves, but does not remove, the head of this queue.
Eremove()Retrieves and removes the head of this queue.
-
Methods declared in class java.util.AbstractCollection
contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods declared in interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
-