contains

open operator override fun contains(o: E): Boolean

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

Return

true if this queue contains the specified element

Parameters

o

object to be checked for containment in this queue