Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Unified Diff: sdk/lib/core/list.dart

Issue 11931034: Add methods to Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also on DoubleLinkedQueue. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/core/list.dart
diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart
index a2c299aceea1c9e9c9a269cb07eface79834812a..37828c79c3a65ca177ed00454220ccf16f7a4cd0 100644
--- a/sdk/lib/core/list.dart
+++ b/sdk/lib/core/list.dart
@@ -304,6 +304,26 @@ abstract class NonExtensibleListMixin<E>
"Cannot add to an unmodifiable list");
}
+ void remove(E element) {
+ throw new UnsupportedError(
+ "Cannot remove in an unmodifiable list");
floitsch 2013/01/17 13:36:58 remove from ...
Lasse Reichstein Nielsen 2013/01/18 11:41:48 Done.
+ }
+
+ void removeAll(Iterable elements) {
+ throw new UnsupportedError(
+ "Cannot remove in an unmodifiable list");
+ }
+
+ void retainAll(Iterable elements) {
+ throw new UnsupportedError(
+ "Cannot remove in an unmodifiable list");
+ }
+
+ void removeMatching(bool test(E element)) {
+ throw new UnsupportedError(
+ "Cannot remove in an unmodifiable list");
+ }
+
void sort([Comparator<E> compare]) {
throw new UnsupportedError(
"Cannot modify an unmodifiable list");

Powered by Google App Engine
This is Rietveld 408576698