diff --git a/src/changes/changes.xml b/src/changes/changes.xml index deb08c46f..82931a6d5 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,9 @@
collection
unless retain
does not contain e
, in which
* case the cardinality is zero. This method is useful if you do not wish to modify
* the collection c
and thus cannot call c.retainAll(retain);
.
+ *
+ * This implementation iterates over collection
, checking each element in
+ * turn to see if it's contained in retain
. If it's contained, it's added
+ * to the returned list. As a consequence, it is advised to use a collection type for
+ * retain
that provides a fast (e.g. O(1)) implementation of
+ * {@link Collection#contains(Object)}.
*
* @param