@@ -100,30 +100,12 @@ type Collection interface {
100100 ContainsAll (c Collection ) bool
101101
102102 /**
103- * Adds all of the elements in the specified collection to this collection
104- * (optional operation). The behavior of this operation is undefined if
105- * the specified collection is modified while the operation is in progress.
106- * (This implies that the behavior of this call is undefined if the
107- * specified collection is this collection, and this collection is
108- * nonempty.)
109- *
110- * @param c collection containing elements to be added to this collection
111- * @return <tt>true</tt> if this collection changed as a result of the call
112- * @throws UnsupportedOperationException if the <tt>addAll</tt> operation
113- * is not supported by this collection
114- * @throws ClassCastException if the class of an element of the specified
115- * collection prevents it from being added to this collection
116- * @throws NullPointerException if the specified collection contains a
117- * null element and this collection does not permit null elements,
118- * or if the specified collection is null
119- * @throws IllegalArgumentException if some property of an element of the
120- * specified collection prevents it from being added to this
121- * collection
122- * @throws IllegalStateException if not all the elements can be added at
123- * this time due to insertion restrictions
124- * @see #add(Object)
103+ * @Description:
104+ * @param c
105+ * @return bool indicate whether c has changed or not when the method return
106+ * @return error indicate error happened during adding.
125107 */
126- AddAll (c Collection ) bool
108+ AddAll (c Collection ) ( bool , error )
127109
128110 /**
129111 * Removes all of this collection's elements that are also contained in the
@@ -151,10 +133,10 @@ type Collection interface {
151133 RemoveAll (c Collection ) bool
152134
153135 /**
154- * Removes all of the elements of this collection that satisfy the given
155- * predicate. Errors or runtime exceptions thrown during iteration or by
156- * the predicate are relayed to the caller.
157- *
136+ * Removes all of the elements of this collection that satisfy the given
137+ * predicate. Errors or runtime exceptions thrown during iteration or by
138+ * the predicate are relayed to the caller.
139+ *
158140 */
159141 RemoveIf (filter func (value interface {}) bool ) bool
160142
0 commit comments