Add tests for @EqualsAndHashCode for the attributes of and exclude

This commit is contained in:
Roel Spilker
2015-10-26 22:21:16 +01:00
parent be2dfb3d9d
commit 30cfbcf9e4
3 changed files with 103 additions and 0 deletions
@@ -0,0 +1,11 @@
@lombok.EqualsAndHashCode(of={"x"})
final class EqualsAndHashCodeOf {
int x;
int y;
}
@lombok.EqualsAndHashCode(exclude={"y"})
final class EqualsAndHashCodeExclude {
int x;
int y;
}