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

Side by Side Diff: pkg/fixnum/intx.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * A fixed-precision integer. 6 * A fixed-precision integer.
7 */ 7 */
8 abstract class intx implements Comparable { 8 abstract class intx implements Comparable {
9 9
10 // Arithmetic operations. 10 // Arithmetic operations.
(...skipping 21 matching lines...) Expand all
32 32
33 // Relational operations, may be applied to intx or int. 33 // Relational operations, may be applied to intx or int.
34 int compareTo(Comparable other); 34 int compareTo(Comparable other);
35 bool operator ==(other); 35 bool operator ==(other);
36 bool operator <(other); 36 bool operator <(other);
37 bool operator <=(other); 37 bool operator <=(other);
38 bool operator >(other); 38 bool operator >(other);
39 bool operator >=(other); 39 bool operator >=(other);
40 40
41 // Testers. 41 // Testers.
42 bool isEven(); 42 bool get isEven;
43 bool isMaxValue(); 43 bool get isMaxValue;
44 bool isMinValue(); 44 bool get isMinValue;
45 bool isNegative(); 45 bool get isNegative;
46 bool isOdd(); 46 bool get isOdd;
47 bool isZero(); 47 bool get isZero;
48 48
49 int get hashCode; 49 int get hashCode;
50 50
51 intx abs(); 51 intx abs();
52 52
53 /** 53 /**
54 * Returns the number of leading zeros in this [intx] as an [int] 54 * Returns the number of leading zeros in this [intx] as an [int]
55 * between 0 and 64. 55 * between 0 and 64.
56 */ 56 */
57 int numberOfLeadingZeros(); 57 int numberOfLeadingZeros();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 * Returns the value of this [intx] as a hexadecimal [String]. 94 * Returns the value of this [intx] as a hexadecimal [String].
95 */ 95 */
96 String toHexString(); 96 String toHexString();
97 97
98 /** 98 /**
99 * Returns the value of this [intx] as a [String] in the given radix. 99 * Returns the value of this [intx] as a [String] in the given radix.
100 * [radix] must be an integer between 2 and 16, inclusive. 100 * [radix] must be an integer between 2 and 16, inclusive.
101 */ 101 */
102 String toRadixString(int radix); 102 String toRadixString(int radix);
103 } 103 }
OLDNEW
« lib/core/int.dart ('K') | « pkg/fixnum/int64.dart ('k') | pkg/fixnum/test/int_64_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698