mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 17:57:25 +00:00
aaf8547d91
Also updated @Getter and @Setter's documentation to explain their new class-level feature, and updated @Data's description to highlight how @Data is now truly nothing more than the combination of @RequiredArgsConstructor, @EqualsAndHashCode, @ToString, @Getter, and @Setter.
17 lines
406 B
Plaintext
17 lines
406 B
Plaintext
import lombok.AccessLevel;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.NonNull;
|
|
|
|
@RequiredArgsConstructor(staticName = "of")
|
|
@AllArgsConstructor(access = AccessLevel.PROTECTED)
|
|
public class ConstructorExample<T> {
|
|
private int x, y;
|
|
@NonNull private T description;
|
|
|
|
@NoArgsConstructor
|
|
public static class NoArgsExample {
|
|
@NonNull private String field;
|
|
}
|
|
}
|