1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
30
30
public interface PropertyResolver {
31
31
32
32
/**
33
- * Return whether the given property key is available for resolution,
34
- * i.e. if the value for the given key is not {@code null}.
33
+ * Determine whether the given property key is available for resolution
34
+ * — for example, if the value for the given key is not {@code null}.
35
35
*/
36
36
boolean containsProperty (String key );
37
37
38
38
/**
39
- * Return the property value associated with the given key,
39
+ * Resolve the property value associated with the given key,
40
40
* or {@code null} if the key cannot be resolved.
41
41
* @param key the property name to resolve
42
42
* @see #getProperty(String, String)
@@ -46,7 +46,7 @@ public interface PropertyResolver {
46
46
@ Nullable String getProperty (String key );
47
47
48
48
/**
49
- * Return the property value associated with the given key, or
49
+ * Resolve the property value associated with the given key, or
50
50
* {@code defaultValue} if the key cannot be resolved.
51
51
* @param key the property name to resolve
52
52
* @param defaultValue the default value to return if no value is found
@@ -56,7 +56,7 @@ public interface PropertyResolver {
56
56
String getProperty (String key , String defaultValue );
57
57
58
58
/**
59
- * Return the property value associated with the given key,
59
+ * Resolve the property value associated with the given key,
60
60
* or {@code null} if the key cannot be resolved.
61
61
* @param key the property name to resolve
62
62
* @param targetType the expected type of the property value
@@ -65,7 +65,7 @@ public interface PropertyResolver {
65
65
<T > @ Nullable T getProperty (String key , Class <T > targetType );
66
66
67
67
/**
68
- * Return the property value associated with the given key,
68
+ * Resolve the property value associated with the given key,
69
69
* or {@code defaultValue} if the key cannot be resolved.
70
70
* @param key the property name to resolve
71
71
* @param targetType the expected type of the property value
@@ -75,14 +75,14 @@ public interface PropertyResolver {
75
75
<T > T getProperty (String key , Class <T > targetType , T defaultValue );
76
76
77
77
/**
78
- * Return the property value associated with the given key (never {@code null}).
78
+ * Resolve the property value associated with the given key (never {@code null}).
79
79
* @throws IllegalStateException if the key cannot be resolved
80
80
* @see #getRequiredProperty(String, Class)
81
81
*/
82
82
String getRequiredProperty (String key ) throws IllegalStateException ;
83
83
84
84
/**
85
- * Return the property value associated with the given key, converted to the given
85
+ * Resolve the property value associated with the given key, converted to the given
86
86
* targetType (never {@code null}).
87
87
* @throws IllegalStateException if the given key cannot be resolved
88
88
*/
0 commit comments