Java AbstractQueue.isEmpty()

Java AbstractQueue.isEmpty() is a method in the Java AbstractQueue class that checks if the queue contains no elements. It returns true if the queue is empty and false otherwise. Introduced in Java 2004 with Java 5, isEmpty() is commonly used in applications that require conditional processing based on the presence of elements in the queue.

https://docs.oracle.com/javase/8/docs/api/java/util/AbstractQueue.html