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
As a suggestion, this is how resulting builders could look like:
publicabstractclassVehicle {
// [...]// protected instead of public?// non-final?protectedstaticclassBuilder {
// [ all fields of type Vehicle ]
}
}
publicclassCarextendsVehicle {
// [...]publicstaticfinalclassBuilderextendsVehicle.Builder {
// [ all fields of type Car ]// PLUS:// Overrides for all methods of Vehicle.Builder (in order to allow strongly-typed fluent usage) - delegating to Vehicle.Builder but casting return value to Car.Builder)
}
}
The text was updated successfully, but these errors were encountered:
I would love to have support for polymorphism in Builderberg.
Simple example:
As a suggestion, this is how resulting builders could look like:
The text was updated successfully, but these errors were encountered: