OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of Money; | |
5 | 4 |
6 /** | 5 /** |
7 * Instances of the class [SimpleMoney] implement a monetary amount that has a | 6 * Instances of the class [SimpleMoney] implement a monetary amount that has a |
8 * single currency. | 7 * single currency. |
9 */ | 8 */ |
10 class SimpleMoney implements Money { | 9 class SimpleMoney implements Money { |
11 final int amount; | 10 final int amount; |
12 | 11 |
13 final String currency; | 12 final String currency; |
14 | 13 |
(...skipping 29 matching lines...) Expand all Loading... |
44 } | 43 } |
45 | 44 |
46 int getAmount() { | 45 int getAmount() { |
47 return amount; | 46 return amount; |
48 } | 47 } |
49 | 48 |
50 String getCurrency() { | 49 String getCurrency() { |
51 return currency; | 50 return currency; |
52 } | 51 } |
53 } | 52 } |
OLD | NEW |