Lombok
Lombok annotations, with an emphasis on the lesser-known and advanced ones.
Lombok Variables
val list = new ArrayList<String>();
// The type of `list` is inferred as `ArrayList<String>`Annotations-
@Getter, @Setter, @NoArgsConstructor, @AllArgsConstructor, @Builder, @Log4j2,
@Slf4j@Value
@Value
public class ImmutableUser {
String name;
int age;
}@SneakyThrows
@Cleanup
@UtilityClass
@FieldDefaults
@Getter(lazy = true)
@FieldNameConstants
@Accessors
@With
@ToString
@EqualsAndHashCode
@RequiredArgsConstructor
@Data
Last updated