Update release notes

This commit is contained in:
Clément Fournier
2018-12-04 13:56:52 +01:00
parent c99b01bd46
commit a550543dd0
2 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,9 @@ by a corresponding method on `PropertyFactory`:
Having a separate property for floats wasn't that useful.
* Similarly, {% jdoc props::FloatMultiProperty %} and {% jdoc props::DoubleMultiProperty %} are replaced by {% jdoc !c!:PF#doubleListProperty(java.lang.String) %}.
* {% jdoc props::BooleanProperty %} is replaced by {% jdoc !c!:PF#booleanProperty(java.lang.String) %}
* Its multi-valued counterpart, {% jdoc props::BooleanMultiProperty %}, is not replaced, because it doesn't have a use case.
* {% jdoc props::MethodProperty %}, {% jdoc props::FileProperty %}, {% jdoc props::TypeProperty %} and their multi-valued counterparts
are discontinued for lack of a use-case, and have no planned replacement in 7.0.0 for now.
<!-- TODO complete that as we proceed. -->

View File

@ -180,6 +180,8 @@ public final class PropertyFactory {
* @param name Name of the property to build
*
* @return A new builder
*
* @see #booleanProperty(String, boolean)
*/
public static GenericPropertyBuilder<Boolean> booleanProperty(String name) {
return new GenericPropertyBuilder<>(name, ValueParserConstants.BOOLEAN_PARSER, Boolean.class);
@ -194,6 +196,8 @@ public final class PropertyFactory {
* @param defaultValue Default value of the property
*
* @return A new builder
*
* @see #booleanProperty(String)
*/
public static GenericPropertyBuilder<Boolean> booleanProperty(String name, boolean defaultValue) {
return booleanProperty(name).defaultValue(defaultValue);