Does the combination of lambda with a builder have known name as a Design Pattern?

The elasticsearch-java client SDK uses the combination of a lambda with a builder a lot, e.g.:

 esClient.something(somethingBuilder -> somethingBuilder
.propertyA(valueA)
.propertyB(valueB)
)....;

Is there an established design pattern name for this combination that I can use to refer to this construction?

I used it in our own code too now.

Hey! I don't think there's an official name for this, we call it "functional builder", but I've also seen it mentioned as "advanced builder pattern".

1 Like