Over a million developers have joined DZone.

Flesh Out Your Builder With Vim.

Create 'setters' for builder methods with vim. On each line, place 'type varname:

int foo
string bar

%s:\(\w\+\) \(\w\+\):public ClassIdBuilder \2(\1 value) {this.\2 = value; return this;}:

Copy assignments from builder to type. Each line is a variable name.

:%s:\(\w\+\):this.\1 = builder.\1;:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}