OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:math' as math; | 5 import 'dart:math' as math; |
6 | 6 |
7 import 'package:collection/equality.dart'; | 7 import 'package:collection/collection.dart'; |
8 | 8 |
9 import 'patterns.dart'; | 9 import 'patterns.dart'; |
10 import 'version_constraint.dart'; | 10 import 'version_constraint.dart'; |
11 import 'version_range.dart'; | 11 import 'version_range.dart'; |
12 | 12 |
13 /// The equality operator to use for comparing version components. | 13 /// The equality operator to use for comparing version components. |
14 final _equality = const IterableEquality(); | 14 final _equality = const IterableEquality(); |
15 | 15 |
16 /// A parsed semantic version number. | 16 /// A parsed semantic version number. |
17 class Version implements Comparable<Version>, VersionConstraint, VersionRange { | 17 class Version implements Comparable<Version>, VersionConstraint, VersionRange { |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // Compare two strings. | 318 // Compare two strings. |
319 return aPart.compareTo(bPart); | 319 return aPart.compareTo(bPart); |
320 } | 320 } |
321 } | 321 } |
322 } | 322 } |
323 | 323 |
324 // The lists are entirely equal. | 324 // The lists are entirely equal. |
325 return 0; | 325 return 0; |
326 } | 326 } |
327 } | 327 } |
OLD | NEW |