diff options
author | Bulgakov Alexander <buls@yandex.ru> | 2019-05-04 23:41:14 +0300 |
---|---|---|
committer | Bulgakov Alexander <buls@yandex.ru> | 2019-05-04 23:41:14 +0300 |
commit | 8276dee2551d3f8d29f414a0a762565eec381258 (patch) | |
tree | 58e279150b6577b26e3a7a9c24aed4e1b347fda1 /src/core/lombok/Builder.java | |
parent | afe9e374975c85a87fdf6c0d45171ac44f616a37 (diff) | |
parent | 2611e6bf9830e4971dcae3abedfede59f3cc86a5 (diff) | |
download | lombok-8276dee2551d3f8d29f414a0a762565eec381258.tar.gz lombok-8276dee2551d3f8d29f414a0a762565eec381258.tar.bz2 lombok-8276dee2551d3f8d29f414a0a762565eec381258.zip |
Merge branch 'feature/typeInferenceImprovements' of https://github.com/bulgakovalexander/lombok into feature/typeInferenceImprovements
Diffstat (limited to 'src/core/lombok/Builder.java')
-rw-r--r-- | src/core/lombok/Builder.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lombok/Builder.java b/src/core/lombok/Builder.java index c83b3670..a60af9ee 100644 --- a/src/core/lombok/Builder.java +++ b/src/core/lombok/Builder.java @@ -147,6 +147,14 @@ public @interface Builder { boolean toBuilder() default false; /** + * Sets the access level of the generated builder class. By default, generated builder classes are {@code public}. + * Note: This does nothing if you write your own builder class (we won't change its access level). + * + * @return The builder class will be generated with this access modifier. + */ + AccessLevel access() default lombok.AccessLevel.PUBLIC; + + /** * Put on a field (in case of {@code @Builder} on a type) or a parameter (for {@code @Builder} on a constructor or static method) to * indicate how lombok should obtain a value for this field or parameter given an instance; this is only relevant if {@code toBuilder} is {@code true}. * |