-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.withoutCustomer() #101
Comments
Err, I see what you mean... I have to think about how this could be realized. |
Great!
Which would yield |
I'd just like to say that I would very much welcome this feature, too :-) |
There is a really nice workaround for this if you are using public static <T> Builder<T> $null() {
return () -> null;
} And use that method instead of a .withCustomer($null()) |
I'm using PojoBuilder
withBuilderProperties
, which is great to stick stuff together.However, I'm experiencing some pain when setting properties to null. As
.withCustomer(null)
would be ambiguous, I have to write something like.withCustomer((Customer) null)
.Wouldn't it be nice if we had no-args methods like
.withoutCustomer()
, setting the customer property to null?The text was updated successfully, but these errors were encountered: