|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Data
This annotation is used by the Xtend compiler.
It turns an annotated class into an immutable value object.
All fields become final and a getter method is added.
The fields' name are prepended with an underscore (i.e. myField becomes _myField)
One constructor for initializing the uninitialized fields is added.
Object.equals(Object)
and Object.hashCode()
implementations are added.
Object.toString()
implementation is added.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |