- @Value to me would imply a class with no setters: all observable aspects of the object are immutable.
- Using an annotation to do serial id does not simplify the code (much), since setting the serial id is already one simple line.
- Yes, this is the right place to post ideas like this.
Michael Lorton wrote:doh! you are right, of course. So, @Value could imply @Data minus @Setter ?
- @Value to me would imply a class with no setters: all observable aspects of the object are immutable.
That is, I'd rather write:
@Value class Point {
int x;
int y;
}
(which would also implement java.io.Serializable).
Reinier & Roel:
perhaps projectlombok.org could have a place to register these ideas so
that the community could vote on them?
Dan