I don't see it anywhere but wanted to make sure I wasn't missing something. Right now YamlBeans will produce null values for fields of missing parameters.
public class ParameterConstraint<T> {
private T minValue;
private T maxValue;
}
name: Cores
defaultValue: 4
constraints:
maxValue: 8
If I parse the above, the field minValue would be null. What I want is instead
public class ParameterConstraint<T> {
private Optional<T> minValue;
private Optional<T> maxValue;
}
to take advantage of the Optional api.
Is there any way to do this?