Recent Changes - Search:

PmWiki

pmwiki.org

edit SideBar

BeanBuilder

The Bean Builder creates beans with hashCode, equals and toString methods. These implementations are generated based on Chapter 3 of Effective Java, by Joshua Bloch.

The options should all be self-explanatory other than the "Add == check?" option. This option adds an object reference check to all the object comparisons. If you are expecting that most comparisons will be with exactly the same reference, adding the "== check" will provide a performance boost.

Classes generated by the Bean Builder make use of the EqualsUtils and HashCodeUtils utility classes which are in the beanBuilder-0.6.jar, so you will need to download the jar in order to make the generated classes work. The jar includes the source code, which is available under the GPL. The generated sources may be used for any and all purposes, including commercial ones. If an application with these generated sources is distributed, the source of EqualsUtils and HashCodeUtils must be given with the distribution in order to meet the terms of the GPL. There may be other restrictions. Check the license for more details.

The Bean Builder is available as an applet here: Bean Builder Applet

Bean Builder Enhancement List

Edit - History - Print - Recent Changes - Search
Page last modified on November 11, 2007, at 09:22 PM