remove

fun remove(element: E): Boolean

Removes the specified element from the queue.

Return

true if the element was removed, false otherwise.

Parameters

element

The element to be removed.