|
1 | 1 | /* |
2 | | - * CREDIT SUISSE IS WILLING TO LICENSE THIS SPECIFICATION TO YOU ONLY UPON THE |
3 | | - * CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS AGREEMENT. |
4 | | - * PLEASE READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY. BY |
5 | | - * DOWNLOADING THIS SPECIFICATION, YOU ACCEPT THE TERMS AND CONDITIONS OF THE |
6 | | - * AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY IT, SELECT THE "DECLINE" |
7 | | - * BUTTON AT THE BOTTOM OF THIS PAGE. Specification: JSR-354 Money and Currency |
8 | | - * API ("Specification") Copyright (c) 2012-2015, Credit SUISSE All rights |
9 | | - * reserved. |
10 | | - */ |
| 2 | +* CREDIT SUISSE IS WILLING TO LICENSE THIS SPECIFICATION TO YOU ONLY UPON THE |
| 3 | +* CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS AGREEMENT. |
| 4 | +* PLEASE READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY. BY |
| 5 | +* DOWNLOADING THIS SPECIFICATION, YOU ACCEPT THE TERMS AND CONDITIONS OF THE |
| 6 | +* AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY IT, SELECT THE "DECLINE" |
| 7 | +* BUTTON AT THE BOTTOM OF THIS PAGE. Specification: JSR-354 Money and Currency |
| 8 | +* API ("Specification") Copyright (c) 2012-2015, Credit SUISSE All rights |
| 9 | +* reserved. |
| 10 | +*/ |
11 | 11 | package javax.money.convert; |
12 | 12 |
|
13 | | -import java.util.function.Supplier; |
14 | 13 |
|
15 | 14 | /** |
16 | | - * The supplier of {@link ExchangeRateProvider} that defines an implementations. |
17 | | - */ |
18 | | -public interface ExchangeRateProviderSupplier extends Supplier<String> { |
| 15 | +* A supplier of {@link ExchangeRateProvider} name that references an implementation. |
| 16 | +*/ |
| 17 | +@FunctionalInterface |
| 18 | +public interface ExchangeRateProviderSupplier{ |
| 19 | + |
| 20 | + /** |
| 21 | + * Get the provider name. This signatire equals to the signrature of java.util.function.Supplier in Java 8. |
| 22 | + * |
| 23 | + * @return the provider name, not null. |
| 24 | + */ |
| 25 | + String get(); |
19 | 26 |
|
20 | | - /** |
21 | | - * @return description of the implementation of {@link ExchangeRateProvider} |
22 | | - */ |
23 | | - String getDescription(); |
24 | 27 | } |
0 commit comments