5
5
// file for details. All rights reserved. Use of this source code is governed
6
6
// by a BSD-style license that can be found in the LICENSE file.
7
7
8
- import 'package:dartdoc/src/quiver.dart' as quiver;
9
-
10
8
/// Represents a 2-tuple, or pair.
11
9
class Tuple2 <T1 , T2 > {
12
10
/// Returns the first item of the tuple
@@ -26,7 +24,7 @@ class Tuple2<T1, T2> {
26
24
other is Tuple2 && other.item1 == item1 && other.item2 == item2;
27
25
28
26
@override
29
- int get hashCode => quiver. hash2 (item1.hashCode , item2.hashCode );
27
+ int get hashCode => Object . hash (item1, item2);
30
28
}
31
29
32
30
/// Represents a 3-tuple, or triple.
@@ -54,8 +52,7 @@ class Tuple3<T1, T2, T3> {
54
52
other.item3 == item3;
55
53
56
54
@override
57
- int get hashCode =>
58
- quiver.hash3 (item1.hashCode, item2.hashCode, item3.hashCode);
55
+ int get hashCode => Object .hash (item1, item2, item3);
59
56
}
60
57
61
58
/// Represents a 4-tuple, or quadruple.
@@ -87,6 +84,5 @@ class Tuple4<T1, T2, T3, T4> {
87
84
other.item4 == item4;
88
85
89
86
@override
90
- int get hashCode => quiver.hash4 (
91
- item1.hashCode, item2.hashCode, item3.hashCode, item4.hashCode);
87
+ int get hashCode => Object .hash (item1, item2, item3, item4);
92
88
}
0 commit comments