This is the fifth part of the Playing With args4j series. For your convenience you can find other parts in the table of contents in Part 1 – Mixins There is one more problem with our setters — they are not type safe. This means that we may have integer parameter: And then we can … Continue reading Playing With args4j Part 5 — Safe setters
Tag: args4j
Playing With args4j Part 4 — Nicer setters
This is the fourth part of the Playing With args4j series. For your convenience you can find other parts in the table of contents in Part 1 – Mixins Last time we ended with the setter of a form . What we don’t like here is the last parameters — why would we want to … Continue reading Playing With args4j Part 4 — Nicer setters
Playing With args4j Part 3 — Nice setters
This is the third part of the Playing With args4j series. For your convenience you can find other parts in the table of contents in Part 1 – Mixins Let’s see how we can implement the setters. Idea is as following: we will pass a lambda indicating the getter of the parameter. Next, we will … Continue reading Playing With args4j Part 3 — Nice setters
Playing With args4j Part 2 — Automatic getters
This is the second part of the Playing With args4j series. For your convenience you can find other parts in the table of contents in Part 1 – Mixins Last time we created mixins to be able to compose classes with multiple inherited parameters. We immediately noticed that we have a lot of code duplication … Continue reading Playing With args4j Part 2 — Automatic getters
Playing With args4j Part 1 — Mixins
This is the first part of the Playing With args4j series. For your convenience you can find other parts using the links below (or by guessing the address): Part 1 — Mixins Part 2 — Automatic getters Part 3 — Nice setters Part 4 — Nicer setters Part 5 — Safe setters Imagine that you … Continue reading Playing With args4j Part 1 — Mixins