diff --git a/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java b/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java index 0e8c490bf..9c3f1c084 100644 --- a/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java +++ b/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java @@ -243,6 +243,15 @@ public abstract class AbstractLinkedList implements List { return false; } + /** + * {@inheritDoc} + *

+ * This implementation iterates over the elements of this list, checking each element in + * turn to see if it's contained in coll. If it's contained, it's removed + * from this list. As a consequence, it is advised to use a collection type for + * coll that provides a fast (e.g. O(1)) implementation of + * {@link Collection#contains(Object)}. + */ public boolean removeAll(Collection coll) { boolean modified = false; Iterator it = iterator(); @@ -257,6 +266,15 @@ public abstract class AbstractLinkedList implements List { //----------------------------------------------------------------------- + /** + * {@inheritDoc} + *

+ * This implementation iterates over the elements of this list, checking each element in + * turn to see if it's contained in coll. If it's not contained, it's removed + * from this list. As a consequence, it is advised to use a collection type for + * coll that provides a fast (e.g. O(1)) implementation of + * {@link Collection#contains(Object)}. + */ public boolean retainAll(Collection coll) { boolean modified = false; Iterator it = iterator();