EN
Lombok private constructor (@NoArgsConstructor, @AllArgsConstructor - Java / Lombok annotations)
4
points
Quick solution:
@NoArgsConstructor(access = AccessLevel.PRIVATE)
Example:
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class TimeUtil {
public static final int OFFSET = 5;
// ...
}
Access level by default is public.
References: