seeksvc Search tools, solutions, libraries…
projectlombok.org icon
Project Lombok Open source · MIT
Constructors made to order.
Visit website ↗
Introduction
## Project Lombok
**Constructors made to order:** Generates constructors that take no arguments, one argument per final / non-null field, or one argument for every field.
This set of 3 annotations generate a constructor that will accept 1 parameter for certain fields, and simply assigns this parameter to the field.
- `@NoArgsConstructor` will generate a constructor with no parameters. Certain java constructs, such as hibernate and the Service Provider Interface require a no-args constructor.
- `@RequiredArgsConstructor` generates a constructor with 1 parameter for each field that requires special handling. All non-initialized `final` fields get a parameter, as well as any fields that are marked as `@NonNull` that aren't initialized where they are declared.
- `@AllArgsConstructor` generates a constructor with 1 parameter for each field in your class. Fields marked with `@NonNull` result in null checks on those parameters.
For those fields marked with `@NonNull`, an explicit null check is also generated. The constructor will throw a `NullPointerException` if any of the parameters intended for the fields marked with `@NonNull` contain `null`. The order of the parameters match the order in which the fields appear in your class.
Each of these annotations allows an alternate form, where the generated constructor is always private, and an additional static factory method that wraps around the private constructor is generated. Static fields are skipped by these annotations.
How to use covers Install, Compilers (`Javac`, `ECJ`), Build tools (`maven`, `gradle`, `ant`, `kobalt`), IDEs (`Eclipse`, `IntelliJ IDEA`, `Netbeans`, `MyEclipse`, `Spring Tool Suite`, `JBoss Developer Studio`, `Visual Studio Code`), and Platforms (`Android`, `GWT`).
Java annotationsConstructorsBoilerplate codeNull checksStatic factoriesBuild toolsIDE support
Screenshots
Project Lombok · 首页
Deployment
下载 Lombok JAR / Install
适用于按官方安装指引将 Lombok 集成到本地 Java 开发环境中使用。
Javac 编译器集成
适用于使用标准 javac 编译 Java 项目时启用 Lombok 注解处理。
ECJ 编译器集成
适用于使用 Eclipse Compiler for Java(ECJ)的项目或工具链中集成 Lombok。
Maven
适用于通过 Maven 管理依赖和构建的 Java 项目中引入 Lombok。
Gradle
适用于通过 Gradle 管理依赖和构建的 Java 项目中引入 Lombok。
Ant
适用于仍使用 Ant 构建脚本的 Java 项目中配置 Lombok。
Kobalt
适用于使用 Kobalt 构建工具的项目中集成 Lombok。
Eclipse
适用于在 Eclipse IDE 中开发 Java 项目并需要 Lombok IDE 支持。
IntelliJ IDEA
适用于在 IntelliJ IDEA 中开发 Java 项目并需要 Lombok 注解识别与编译支持。
NetBeans
适用于在 NetBeans IDE 中开发 Java 项目并启用 Lombok 支持。
MyEclipse
适用于在 MyEclipse 环境中开发 Java 项目并集成 Lombok。
Spring Tool Suite
适用于使用 Spring Tool Suite 开发 Spring/Java 项目并需要 Lombok 支持。
JBoss Developer Studio
适用于在 JBoss Developer Studio 中开发 Java 项目并集成 Lombok。
Visual Studio Code
适用于在 VS Code 中进行 Java 开发并需要 Lombok 支持。
Android
适用于 Android 平台项目中使用 Lombok 注解减少样板代码。
GWT
适用于 Google Web Toolkit 项目中按官方说明使用 Lombok。
Details
Type Open-source software
License MIT
Last verified 2026-07-18
Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.
seeksvc
一个可查询的宝藏收藏库:开源与闭源软件、开发库与完整解决方案。
© 2026 seeksvc · Manually verified, continuously updated