Timeline for Should I use chained functions in Java?
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 5, 2011 at 14:05 | comment | added | tylermac | I've done both inner classes and outer classes, and have found no preference between either myself. | |
| Oct 3, 2011 at 17:35 | vote | accept | Ivan | ||
| Oct 3, 2011 at 17:19 | comment | added | user1249 | Note, you need a separate builder class to ensure the integrity of MyClass. | |
| Oct 3, 2011 at 17:14 | comment | added | kevin cline |
Why not use an inner class: new MyClass.Builder()... ? It's hard to imagine two more tightly coupled classes.
|
|
| Oct 3, 2011 at 17:13 | comment | added | user28988 | The Builder pattern is explained in more detail in Effective Java. amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/… | |
| Oct 3, 2011 at 16:15 | history | answered | tylermac | CC BY-SA 3.0 |