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 | 4 |
5 library Money; | 5 #library("Money"); |
6 | 6 |
7 #source("complex_money.dart"); | 7 #source("complex_money.dart"); |
8 #source("currency_exchange.dart"); | 8 #source("currency_exchange.dart"); |
9 #source("currency.dart"); | 9 #source("currency.dart"); |
10 #source("simple_money.dart"); | 10 #source("simple_money.dart"); |
11 | 11 |
12 /** | 12 /** |
13 * The interface [Money] defines the behavior of objects representing a monitary | 13 * The interface [Money] defines the behavior of objects representing a monitary |
14 * quantity. | 14 * quantity. |
15 */ | 15 */ |
16 interface Money { | 16 interface Money { |
17 Money operator +(Money money); | 17 Money operator +(Money money); |
18 | 18 |
19 Money addComplexMoney(ComplexMoney money); | 19 Money addComplexMoney(ComplexMoney money); |
20 | 20 |
21 Money addSimpleMoney(SimpleMoney money); | 21 Money addSimpleMoney(SimpleMoney money); |
22 } | 22 } |
OLD | NEW |