/**
* Optionally sets the default value for the {@link PojoWithGuavaOptional#boxedInt} property.
*
* @param optionalValue the default value
* @return this builder
*/
public PojoWithGuavaOptionalBuilder withPrimitiveInt(Optional<Integer> optionalValue) {
return optionalValue.isPresent()?withPrimitiveInt(optionalValue.get()):self;
}
The generation of such a method is prevented here.
For comparison, with-Builder methods are generated for primitive types as you can see in PojoBuilder
For instance the class PojoWithGuavaOptionalBuilder could very well have this additional method:
The generation of such a method is prevented here. For comparison, with-Builder methods are generated for primitive types as you can see in PojoBuilder