3 ms·
Implementing Queue would mean also implementing Collection and Iterable, and this would bring pains and ugliness, especially with the concurrent code. Look e.g
by vitpro2213 2y ago
Implementing Queue would mean also implementing Collection and Iterable, and this would bring pains and ugliness, especially with the concurrent code.
Look e.g. at the disclaimers at the size method of java.util.concurrent.ConcurrentLinkedQueue.