Commit Graph

8 Commits

Author SHA1 Message Date
Reinier Zwitserloot 251fd03cd7 The hashCode() method now generates a magic prime instead of 0 for the hash of null values; this reduces collisions. 2015-06-25 00:13:12 +02:00
Roel Spilker 4d24542dac [i660] canEqual is now protected instead of public.
Also fixed the total lack of canEqual in the usage examples.
2014-03-26 21:11:30 +01:00
Roel Spilker 14cc545276 Issue 625: use (even) better primes for hashcodes 2014-01-19 21:49:35 +01:00
Reinier Zwitserloot a40a86ad53 [#625] Instead of '31' as a prime number for hashCode(), use something else. 31, probably owing to its inclusion in Effective Java, is overused, as proven by Maaartinus in issue 625. Switching to 277 instead. Also, 1231/1237 pair used for booleans has been replaced by 2591/2609. 2014-01-09 21:24:04 +01:00
Roel Spilker d8e933223f Updated the after-delombok images to the latest state. 2012-04-29 23:57:47 +02:00
Reinier Zwitserloot 91bb3455da Added using .getX() instead of using .x in equals, hashCode, and toString. Also updated changelog as well as the docs.
Also updated usage examples for @EqualsAndHashCode, @ToString, and @Data, which also contained some other minor issues (such as missing this. qualifiers).

Still to do is to detect that getters don't exist _yet_ but will later due to @Getter or @Data.
2010-07-21 10:51:09 +02:00
Reinier Zwitserloot fb6be45d2b Added website feature documentation for @ToString and @EqualsAndHashCode, and modified the docs for @Data to refer to the docs of these new annotations.
The build script for the website has been updated to clean out the website build dir first, so files that used to exist but have now been tossed are no longer there.

There's also a special website-no-videos target which builds a website deployable without the videos. This makes the upload a lot faster if the videos haven't changed.
2009-07-28 17:41:56 +02:00
Reinier Zwitserloot 2adf65aeb3 Example for the @Data annotation. 2009-07-12 00:39:18 +02:00