资讯

The Java language spec lists 10 Java constructor types, including default, no-args, canonical, private parameterized, generic, overloaded and anonymous.
Structures can now have a default constructor but you have to be careful how you use the structure to ensure that your constructor actually runs.
NetBeans 7.2 makes it easy to refactor the constructor with the long parameter list in the above example to take advantage of an instance of Builder.
In the post NetBeans 7.2: Refactoring Parameterized Constructor As Builder , I looked at how NetBeans 7.2 supports refactoring a constructor to a builder as described in Item 2 of the Second ...