, compareTo; javadoc remove() : " , k v, (key == null? k == null: key.equals(k)), ." Set " , e , (o == null? E == null: o.equals(e)), ."
Note that removeAll () javadoc does not say how it works, which means, as others have said, that this is an implementation detail.
In Sun Java, according to Bloch in its Effective Java (if I remember correctly), it iterates over the collection and calls remove (), but it emphasizes that you should never assume that this has always been done.
source
share