Java – AbstractQueue Class

Java AbstractQueue Class methods, constructors, variables available in Java 8 release are listed below. We will publish example program on each methods ASAP.

Constructors in Java AbstractQueue Class

S.No Constructor & Description
1 protected AbstractQueue()

Constructor for use by subclasses.

Methods in Java AbstractQueue Class

S.No Method & Description
1 boolean add(E e)

Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and throwing an IllegalStateException if no space is currently available.
2 boolean addAll(Collection<? extends E> c)

Adds all of the elements in the specified collection to this queue.
3 void clear()

Removes all of the elements from this queue.
4 E element()

Retrieves, but does not remove, the head of this queue.
5 E remove()

Retrieves and removes the head of this queue.

Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java – Collectors Class
  2. Java – Properties Class
  3. Java – Spliterator.OfInt Interface
  4. Java – LongConsumer Interface
  5. Java – HashSet Class
  6. Java – AtomicStampedReference Class
  7. Java – BlockingDeque Interface
  8. Java – TreeMap Class
  9. Java – Readable Interface
  10. Java – ConcurrentSkipListMap Class
  11. Java – TransferQueue Interface
  12. Java – LongFunction Interface
  13. Java – IntToLongFunction Interface
  14. Java – NavigableMap Interface
  15. Java – Function Interface

Be the first to comment

Leave a Reply