490 |
|
public boolean remove(Object o) { |
491 |
|
Object[] snapshot = getArray(); |
492 |
|
int index = indexOf(o, snapshot, 0, snapshot.length); |
493 |
< |
return (index < 0) ? false : remove(o, snapshot, index); |
493 |
> |
return index >= 0 && remove(o, snapshot, index); |
494 |
|
} |
495 |
|
|
496 |
|
/** |
569 |
|
*/ |
570 |
|
public boolean addIfAbsent(E e) { |
571 |
|
Object[] snapshot = getArray(); |
572 |
< |
return indexOf(e, snapshot, 0, snapshot.length) >= 0 ? false : |
573 |
< |
addIfAbsent(e, snapshot); |
572 |
> |
return indexOf(e, snapshot, 0, snapshot.length) < 0 |
573 |
> |
&& addIfAbsent(e, snapshot); |
574 |
|
} |
575 |
|
|
576 |
|
/** |