Код: Выделить всё
@Value
@NonFinal
public class A {
int x;
int y;
}
Код: Выделить всё
@Value
public class B extends A {
int z;
}
Код: Выделить всё
public class B extends A {
int z;
public B( int x, int y, int z) {
super( x , y );
this.z = z;
}
}
Подробнее здесь: https://stackoverflow.com/questions/297 ... -in-lombok
Мобильная версия