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

Unified Diff: pkg/fixnum/int32.dart

Issue 11227042: isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 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
Index: pkg/fixnum/int32.dart
diff --git a/pkg/fixnum/int32.dart b/pkg/fixnum/int32.dart
index 60d16292f75b0f20f9bcebdc92fd2bb028b3af31..295a3406616c20684d5d61e6b4a04d16d78aed06 100644
--- a/pkg/fixnum/int32.dart
+++ b/pkg/fixnum/int32.dart
@@ -321,12 +321,12 @@ class int32 implements intx {
return _i >= _convert(other);
}
- bool isEven() => (_i & 0x1) == 0;
- bool isMaxValue() => _i == 2147483647;
- bool isMinValue() => _i == -2147483648;
- bool isNegative() => _i < 0;
- bool isOdd() => (_i & 0x1) == 1;
- bool isZero() => _i == 0;
+ bool get isEven => (_i & 0x1) == 0;
+ bool get isMaxValue => _i == 2147483647;
+ bool get isMinValue => _i == -2147483648;
+ bool get isNegative => _i < 0;
+ bool get isOdd => (_i & 0x1) == 1;
+ bool get isZero => _i == 0;
int get hashCode => _i;
« lib/core/int.dart ('K') | « lib/math/base.dart ('k') | pkg/fixnum/int64.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698