Re: Fluent API addition request
Michael Gentry <[email protected]> Tue, 9 Jul 2024 09:11:33 -0600
| Newsgroups | gmane.comp.java.cayenne.devel |
|---|---|
| Message-ID | <CAOy5kzOkn=-ZZdHnXzPfEbrhQhe=nth2WY2qUfjzc3fNZ0KoVQ@mail.gmail.com> |
On Mon, Jul 8, 2024 at 4:30 AM Jurgen Doll <[email protected]> wrote: > In addition I'd still very much like to have "apply" API that takes a > boolean parameter as well. For simple cases this will allow user code to > be more concise without the ternary pattern clutter. > Hi Jurgen! In general, I'd like to avoid using boolean parameters unless you are actually setting a boolean, like setEnabled(). I'm not sure how you intended to use the boolean, but I think an enum or better-named method is better. mrg