# | Line 393 | Line 393 | public class PriorityQueue<E> extends Ab | |
---|---|---|
393 | * @return {@code true} if this queue contains the specified element | |
394 | */ | |
395 | public boolean contains(Object o) { | |
396 | < | return indexOf(o) != -1; |
396 | > | return indexOf(o) >= 0; |
397 | } | |
398 | ||
399 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |