@@ -61,8 +61,8 @@ public interface Parameters<V> {
6161 * example select {@code String} for {@code R} and then try to get a {@code User} object from the returned
6262 * optional, you will get a {@link ClassCastException} at runtime.
6363 *
64- * @param <R> the class to which the value is implicitly downcasted
6564 * @param parameterName the parameter name whose associated value is to be returned
65+ * @param <R> the class to which the value is implicitly downcasted
6666 * @return the value to which the specified parameter name is mapped
6767 */
6868 <R extends V > Optional <R > get (String parameterName );
@@ -93,9 +93,9 @@ public interface Parameters<V> {
9393 * If you for example select {@code String} for {@code R} and then try to get a {@code User} object,
9494 * you will get a {@link ClassCastException} at runtime.
9595 *
96- * @param <R> the class to which the value is implicitly downcasted
9796 * @param parameterName the parameter name whose associated value is to be returned
9897 * @param defaultValue the default value to return if there is no mapping
98+ * @param <R> the class to which the value is implicitly downcasted
9999 * @return the value to which the specified parameter name is mapped or the default value
100100 */
101101 <R extends V > R get (String parameterName , R defaultValue );
@@ -126,9 +126,9 @@ public interface Parameters<V> {
126126 * If you for example select {@code String} for {@code R} and then try to get a {@code User} object,
127127 * you will get a {@link ClassCastException} at runtime.
128128 *
129- * @param <R> the class to which the value is implicitly downcasted
130129 * @param parameterName the parameter name whose associated value is to be returned
131130 * @param defaultValueSupplier the supplier for the default value to return if there is no mapping
131+ * @param <R> the class to which the value is implicitly downcasted
132132 * @return the value to which the specified parameter name is mapped or the computed default value
133133 */
134134 <R extends V > R get (String parameterName , Supplier <R > defaultValueSupplier );
0 commit comments