Java Fluent Apis

Fluent interfaces and builders as API decisions: when a builder pays for itself versus a record, constructor or static factory; staged builders and their compatibility cost; immutable wither-style APIs; and the debugging and binary compatibility consequences of method chaining. Use when designing or reviewing a type with a costly constructor call site, several optional values, or adjacent parameters of the same type; when someone proposes a builder, staged builder or DSL; or when a long chain has become hard to read, debug or evolve. Does not cover navigation chains through other objects' structure (java-law-of-demeter) or general naming and parameter design (java-api-design).

robsonkades 1388bf0 4 files · 23.2 KB Updated

File contents

robsonkades/agent-skills/tree/main/skills/java-fluent-apis commit 1388bf0605

Frequently asked questions

npx skillmds@latest add robsonkades/java-fluent-apis