BlockingQueue.contains

Returns {@code true} if this queue contains the specified element. More formally, returns {@code true} if and only if this queue contains at least one element {@code e} such that {@code o.equals(e)}.

@param o object to be checked for containment in this queue @return {@code true} if this queue contains the specified element @throws ClassCastException if the class of the specified element is incompatible with this queue (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) @throws NullPointerException if the specified element is null (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)

interface BlockingQueue(E)
bool
contains
(
E o
)

Meta