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
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers
- Java – Collectors Class
- Java – Properties Class
- Java – Spliterator.OfInt Interface
- Java – LongConsumer Interface
- Java – HashSet Class
- Java – AtomicStampedReference Class
- Java – BlockingDeque Interface
- Java – TreeMap Class
- Java – Readable Interface
- Java – ConcurrentSkipListMap Class
- Java – TransferQueue Interface
- Java – LongFunction Interface
- Java – IntToLongFunction Interface
- Java – NavigableMap Interface
- Java – Function Interface
Leave a Reply
You must be logged in to post a comment.