This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
FreeBuilder 2.7.0
With this release, FreeBuilder can generate builders without the standard public methods build
, buildPartial
, clear
and mergeFrom
, allowing you to give them alternative names. (Note that doing so will disable enhanced support for nested builders for this type, as it needs to be able to call these methods.)
public interface MyType {
class Builder extends MyType_Builder {
public OtherDataType build() {
// This signature is not compatible with the default build method.
// FreeBuilder will instead declare a package-scoped _buildImpl.
...
}
public DataType buildMyType() {
return _buildImpl();
}
}
}