You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users don't want to have to have to write facades for this, however small. The value of PB over, say, and IDE-generated builder is the depth of features that can be added "just work".
withBuilderInterface = Supplier.class either as a special case (this is a language feature) or by generalising the public T build() check to public T <anything>()
drekbour
changed the title
Support Java 8 Supplier functional interface
Support Java 8 Supplier as withBuilderInterface
Apr 26, 2017
PBs should be capable of implementing
java.util.function.Supplier<T>
. Currently I need to write:then give that as directive
withBuilderInterface = SupplierBuilder.class
The text was updated successfully, but these errors were encountered: