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

Unified Diff: quiver/lib/src/collection/delegates/list.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 | « quiver/lib/src/collection/delegates/iterable.dart ('k') | quiver/lib/src/collection/delegates/map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: quiver/lib/src/collection/delegates/list.dart
diff --git a/quiver/lib/src/collection/delegates/list.dart b/quiver/lib/src/collection/delegates/list.dart
deleted file mode 100644
index 7863539407c20f3e37e0eedee8e5b24f1dee4f31..0000000000000000000000000000000000000000
--- a/quiver/lib/src/collection/delegates/list.dart
+++ /dev/null
@@ -1,95 +0,0 @@
-// Copyright 2013 Google Inc. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-part of quiver.collection;
-
-/**
- * An implementation of [List] that delegates all methods to another [List].
- * For instance you can create a FruitList like this :
- *
- * class FruitList extends DelegatingList<Fruit> {
- * final List<Fruit> _fruits = [];
- *
- * List<Fruit> get delegate => _fruits;
- *
- * // custom methods
- * }
- */
-abstract class DelegatingList<E> extends DelegatingIterable<E>
- implements List<E> {
- List<E> get delegate;
-
- E operator [](int index) => delegate[index];
-
- void operator []=(int index, E value) {
- delegate[index] = value;
- }
-
- void add(E value) => delegate.add(value);
-
- void addAll(Iterable<E> iterable) => delegate.addAll(iterable);
-
- Map<int, E> asMap() => delegate.asMap();
-
- void clear() => delegate.clear();
-
- void fillRange(int start, int end, [E fillValue]) =>
- delegate.fillRange(start, end, fillValue);
-
- Iterable<E> getRange(int start, int end) => delegate.getRange(start, end);
-
- int indexOf(E element, [int start = 0]) => delegate.indexOf(element, start);
-
- void insert(int index, E element) => delegate.insert(index, element);
-
- void insertAll(int index, Iterable<E> iterable) =>
- delegate.insertAll(index, iterable);
-
- int lastIndexOf(E element, [int start]) =>
- delegate.lastIndexOf(element, start);
-
- void set length(int newLength) {
- delegate.length = newLength;
- }
-
- bool remove(Object value) => delegate.remove(value);
-
- E removeAt(int index) => delegate.removeAt(index);
-
- E removeLast() => delegate.removeLast();
-
- void removeRange(int start, int end) => delegate.removeRange(start, end);
-
- void removeWhere(bool test(E element)) => delegate.removeWhere(test);
-
- void replaceRange(int start, int end, Iterable<E> iterable) =>
- delegate.replaceRange(start, end, iterable);
-
- void retainWhere(bool test(E element)) => delegate.retainWhere(test);
-
- Iterable<E> get reversed => delegate.reversed;
-
- void setAll(int index, Iterable<E> iterable) =>
- delegate.setAll(index, iterable);
-
- void setRange(int start, int end, Iterable<E> iterable,
- [int skipCount = 0]) =>
- delegate.setRange(start, end, iterable, skipCount);
-
- void shuffle([Random random]) => delegate.shuffle(random);
-
- void sort([int compare(E a, E b)]) => delegate.sort(compare);
-
- List<E> sublist(int start, [int end]) => delegate.sublist(start, end);
-}
« no previous file with comments | « quiver/lib/src/collection/delegates/iterable.dart ('k') | quiver/lib/src/collection/delegates/map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698