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 * The interface [CurrencyExchange] defines the behavior of classes that can | 6 * The interface [CurrencyExchange] defines the behavior of classes that can |
8 * convert from one currency to another. | 7 * convert from one currency to another. |
9 */ | 8 */ |
10 interface CurrencyExchange { | 9 interface CurrencyExchange { |
11 int convert(int amount, String sourceCurrency, String targetCurrency); | 10 int convert(int amount, String sourceCurrency, String targetCurrency); |
12 } | 11 } |
13 | 12 |
OLD | NEW |