[new-style include/exclude] added new-style include/exclude support to EqualsAndHashCode.

This commit is contained in:
Reinier Zwitserloot
2018-05-15 00:50:58 +02:00
parent 323cc5267e
commit 649a7b72bf
15 changed files with 383 additions and 225 deletions
@@ -0,0 +1,16 @@
import lombok.EqualsAndHashCode;
@EqualsAndHashCode
public class EqualsAndHashCodeNewStyle {
@EqualsAndHashCode.Include int b;
double c;
int f;
@EqualsAndHashCode.Include int d;
@EqualsAndHashCode.Include int f() {
return 0;
}
int g;
@EqualsAndHashCode.Include(replaces = "g") long i() {
return 0;
}
@EqualsAndHashCode.Exclude int j;
}