mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 20:01:38 +00:00
20 lines
428 B
Plaintext
20 lines
428 B
Plaintext
import lombok.AccessLevel;
|
|
import lombok.experimental.NonFinal;
|
|
import lombok.experimental.Value;
|
|
import lombok.experimental.With;
|
|
import lombok.ToString;
|
|
|
|
@Value public class ValueExample {
|
|
String name;
|
|
@With(AccessLevel.PACKAGE) @NonFinal int age;
|
|
double score;
|
|
protected String[] tags;
|
|
|
|
@ToString(includeFieldNames=true)
|
|
@Value(staticConstructor="of")
|
|
public static class Exercise<T> {
|
|
String name;
|
|
T value;
|
|
}
|
|
}
|