5
5
* DOWNLOADING THIS SPECIFICATION, YOU ACCEPT THE TERMS AND CONDITIONS OF THE
6
6
* AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY IT, SELECT THE "DECLINE"
7
7
* BUTTON AT THE BOTTOM OF THIS PAGE. Specification: JSR-354 Money and Currency
8
- * API ("Specification") Copyright (c) 2012-2013 , Credit Suisse All rights
8
+ * API ("Specification") Copyright (c) 2012-2015 , Credit Suisse All rights
9
9
* reserved.
10
10
*/
11
11
package javax .money .spi ;
@@ -29,20 +29,19 @@ public interface ServiceProvider {
29
29
*/
30
30
public int getPriority ();
31
31
32
- /**
33
- * Access a list of services, given its type. The bootstrap mechanism should
34
- * order the instance for precedence, hereby the most significant should be
32
+ /**
33
+ * Access a list of services, given its type. The bootstrap mechanism should
34
+ * order the instance for precedence, hereby the most significant should be
35
35
* first in order. If no such services are found, an empty list should be
36
36
* returned.
37
37
*
38
- * @param serviceType
39
- * the service type.
40
- * @return The instance to be used, never {@code null}
41
- */
38
+ * @param serviceType the service type.
39
+ * @return The instance to be used, never {@code null}
40
+ */
42
41
<T > List <T > getServices (Class <T > serviceType );
43
42
44
43
/**
45
- * Access a single services , given its type. The bootstrap mechanism should
44
+ * Access a single service , given its type. The bootstrap mechanism should
46
45
* order the instance for precedence, hereby the most significant should be
47
46
* first in order and returned. If no such services are found, null is
48
47
* returned.
@@ -53,5 +52,4 @@ public interface ServiceProvider {
53
52
default <T > T getService (Class <T > serviceType ) {
54
53
return getServices (serviceType ).stream ().findFirst ().orElse (null );
55
54
}
56
-
57
- }
55
+ }
0 commit comments