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

Unified Diff: quiver/lib/collection.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/check.dart ('k') | quiver/lib/core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: quiver/lib/collection.dart
diff --git a/quiver/lib/collection.dart b/quiver/lib/collection.dart
deleted file mode 100644
index 269aaac27304ea5bcd1bb85efdf9515c52408b22..0000000000000000000000000000000000000000
--- a/quiver/lib/collection.dart
+++ /dev/null
@@ -1,87 +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.
-
-/**
- * Collection classes and related utilities.
- */
-library quiver.collection;
-
-import 'dart:collection';
-import 'dart:math';
-
-import 'package:quiver/core.dart';
-import 'package:quiver/iterables.dart';
-
-part 'src/collection/bimap.dart';
-part 'src/collection/lru_map.dart';
-part 'src/collection/multimap.dart';
-part 'src/collection/treeset.dart';
-part 'src/collection/delegates/iterable.dart';
-part 'src/collection/delegates/list.dart';
-part 'src/collection/delegates/map.dart';
-part 'src/collection/delegates/queue.dart';
-part 'src/collection/delegates/set.dart';
-
-/**
- * Checks [List]s [a] and [b] for equality.
- *
- * Returns `true` if [a] and [b] are both null, or they are the same length and
- * every element of [a] is equal to the corresponding element at the same index
- * in [b].
- */
-bool listsEqual(List a, List b) {
- if (a == b) return true;
- if (a == null || b == null) return false;
- if (a.length != b.length) return false;
-
- for (int i = 0; i < a.length; i++) {
- if (a[i] != b[i]) return false;
- }
-
- return true;
-}
-
-/**
- * Checks [Map]s [a] and [b] for equality.
- *
- * Returns `true` if [a] and [b] are both null, or they are the same length and
- * every key `k` in [a] exists in [b] and the values `a[k] == b[k]`.
- */
-bool mapsEqual(Map a, Map b) {
- if (a == b) return true;
- if (a == null || b == null) return false;
- if (a.length != b.length) return false;
-
- for (var k in a.keys) {
- var bValue = b[k];
- if (bValue == null && !b.containsKey(k)) return false;
- if (bValue != a[k]) return false;
- }
-
- return true;
-}
-
-/**
- * Checks [Set]s [a] and [b] for equality.
- *
- * Returns `true` if [a] and [b] are both null, or they are the same length and
- * every element in [b] exists in [a].
- */
-bool setsEqual(Set a, Set b) {
- if (a == b) return true;
- if (a == null || b == null) return false;
- if (a.length != b.length) return false;
-
- return a.containsAll(b);
-}
« no previous file with comments | « quiver/lib/check.dart ('k') | quiver/lib/core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698