Convenience method to put a value for an idiomatic param. @param param the param representing the property name to set @param value the value to set @return the previous value for the param, or null if there was no previous value @since 0.12.0
(Parameter<T> param, Object value)
| 133 | * @since 0.12.0 |
| 134 | */ |
| 135 | protected final <T> Object put(Parameter<T> param, Object value) { |
| 136 | assertMutable(); |
| 137 | Assert.notNull(param, "Parameter cannot be null."); |
| 138 | Assert.hasText(param.getId(), "Parameter id cannot be null or empty."); |
| 139 | return apply(param, value); |
| 140 | } |
| 141 | |
| 142 | @Override |
| 143 | public final Object put(String name, Object value) { |
no test coverage detected