mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 20:01:38 +00:00
17 lines
392 B
Plaintext
17 lines
392 B
Plaintext
import lombok.AccessLevel;
|
|
import lombok.Setter;
|
|
import lombok.Data;
|
|
|
|
@lombok.core.PrintAST(printContent=true)
|
|
public @Data class DataExample {
|
|
private final String name;
|
|
private @Setter(AccessLevel.PACKAGE) int age;
|
|
private double score;
|
|
private String[] tags;
|
|
|
|
public static @Data(staticConstructor="of") class Exercise<T> {
|
|
private final String name;
|
|
private final T value;
|
|
}
|
|
}
|