The inserter exposes a builder through a static method, so wherever we accept an inserter (clients, test clients, MockMvc), we can also accept a consumer that operates directly on the builder.
Comment From: rstoyanchev
Actually ApiVersionInserter
has static, factory methods that don't require using a builder, so getting a Consumer of a builder isn't an improvement. We could however improve the Javadoc of ApiVersionInserter
itself and wherever it is accepted that show these shortcut methods