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

Unified Diff: packages/quiver/lib/src/core/hash.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/quiver/lib/src/collection/treeset.dart ('k') | packages/quiver/lib/src/core/optional.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/quiver/lib/src/core/hash.dart
diff --git a/packages/quiver/lib/src/core/hash.dart b/packages/quiver/lib/src/core/hash.dart
index de5317cc1152e07deb3cddbc79ada4f440c41bd9..1c0ce80dab4962994b4ab87a60b64486e78842db 100644
--- a/packages/quiver/lib/src/core/hash.dart
+++ b/packages/quiver/lib/src/core/hash.dart
@@ -14,26 +14,18 @@
part of quiver.core;
-/**
- * Generates a hash code for multiple [objects].
- */
+/// Generates a hash code for multiple [objects].
int hashObjects(Iterable objects) =>
_finish(objects.fold(0, (h, i) => _combine(h, i.hashCode)));
-/**
- * Generates a hash code for two objects.
- */
+/// Generates a hash code for two objects.
int hash2(a, b) => _finish(_combine(_combine(0, a.hashCode), b.hashCode));
-/**
- * Generates a hash code for three objects.
- */
+/// Generates a hash code for three objects.
int hash3(a, b, c) => _finish(
_combine(_combine(_combine(0, a.hashCode), b.hashCode), c.hashCode));
-/**
- * Generates a hash code for four objects.
- */
+/// Generates a hash code for four objects.
int hash4(a, b, c, d) => _finish(_combine(
_combine(_combine(_combine(0, a.hashCode), b.hashCode), c.hashCode),
d.hashCode));
« no previous file with comments | « packages/quiver/lib/src/collection/treeset.dart ('k') | packages/quiver/lib/src/core/optional.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698