Package org.eclipse.xtend.lib
Annotation Type Data
-
@Target(TYPE) @Deprecated @Documented public @interface Data
Deprecated.useData
insteadThis 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)
andObject.hashCode()
implementations are added.Object.toString()
implementation is added.