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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart

Issue 24740003: Add List.shuffle(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adddress comments Created 7 years, 3 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
« no previous file with comments | « no previous file | pkg/analyzer_experimental/lib/src/generated/java_core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
index be03c5002b3a1a8a0eef18c8fb46bdfe4c3b5afe..c136b7a37ff39db21ee6e9b8f0a7a37439346422 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
@@ -376,6 +376,10 @@ class ListWrapper<E> extends ListBase<E> implements List<E> {
elements.sort(compare);
}
+ void shuffle() {
+ elements.shuffle();
+ }
+
int indexOf(E element, [int start = 0]) {
return elements.indexOf(element, start);
}
@@ -583,4 +587,4 @@ class JavaPatternMatcher {
String group(int i) => _match[i];
int start() => _match.start;
int end() => _match.end;
-}
+}
« no previous file with comments | « no previous file | pkg/analyzer_experimental/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698