{"id":18364886,"url":"https://github.com/codecshekhar/electra-lombok","last_synced_at":"2025-04-10T10:25:10.452Z","repository":{"id":251474922,"uuid":"837531657","full_name":"CodeCshekhar/electra-lombok","owner":"CodeCshekhar","description":"This repository contains lombok concepts to illustrate its advantages in creating POJO classes","archived":false,"fork":false,"pushed_at":"2024-08-18T07:27:19.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T19:49:20.411Z","etag":null,"topics":["java","lombok","lombok-maven"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeCshekhar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-03T08:54:00.000Z","updated_at":"2024-12-04T07:09:31.000Z","dependencies_parsed_at":"2024-08-18T08:45:29.929Z","dependency_job_id":null,"html_url":"https://github.com/CodeCshekhar/electra-lombok","commit_stats":null,"previous_names":["chandrashekharwagh/electra-lombok","codecshekhar/electra-lombok"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Felectra-lombok","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Felectra-lombok/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Felectra-lombok/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeCshekhar%2Felectra-lombok/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeCshekhar","download_url":"https://codeload.github.com/CodeCshekhar/electra-lombok/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199090,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","lombok","lombok-maven"],"created_at":"2024-11-05T23:12:05.673Z","updated_at":"2025-04-10T10:25:10.427Z","avatar_url":"https://github.com/CodeCshekhar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eLombok: Reducing Boilerplate Code in Java\u003c/h1\u003e\n\n\u003ch2\u003eOverview\u003c/h2\u003e\n\u003cp\u003eLombok is a powerful Java library that helps reduce boilerplate code in your projects. It uses annotations to automatically generate common code patterns, making your codebase cleaner and more maintainable.\u003c/p\u003e\n\n\u003ch2\u003eKey Features\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003e\u003cstrong\u003e@Getter and @Setter:\u003c/strong\u003e Automatically generate getter and setter methods for class fields.\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e@ToString:\u003c/strong\u003e Generate a meaningful toString() method.\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e@EqualsAndHashCode:\u003c/strong\u003e Implement equals() and hashCode() methods.\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e@NoArgsConstructor, @RequiredArgsConstructor, and @AllArgsConstructor:\u003c/strong\u003e Generate constructors with different parameter combinations.\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e@Data:\u003c/strong\u003e A shortcut for @ToString, @EqualsAndHashCode, @Getter on all fields, @Setter on all non-final fields, and @RequiredArgsConstructor.\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e@Builder:\u003c/strong\u003e Implement the Builder pattern for object creation.\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e@SneakyThrows:\u003c/strong\u003e Handle checked exceptions without explicitly declaring them.\u003c/li\u003e\n    \u003cli\u003e\u003cstrong\u003e@Log:\u003c/strong\u003e Create a log field for various logging frameworks.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eGetting Started\u003c/h2\u003e\n\u003col\u003e\n    \u003cli\u003eAdd Lombok to your project dependencies.\u003c/li\u003e\n    \u003cli\u003eInstall the Lombok plugin for your IDE (if not already included).\u003c/li\u003e\n    \u003cli\u003eEnable annotation processing in your IDE settings.\u003c/li\u003e\n    \u003cli\u003eStart using Lombok annotations in your Java classes.\u003c/li\u003e\n\u003c/ol\u003e\n\n\u003ch2\u003eExample Usage\u003c/h2\u003e\n\u003cpre\u003e\u003ccode\u003e\nimport lombok.Data;\nimport lombok.NonNull;\n\n@Data\n@NonNull\n\npublic class User {\n    private Long id;\n    private String username;\n    private String email;\n}\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003eThis simple class, with the @Data annotation, automatically gets getters, setters, toString(), equals(), and hashCode() methods, as well as a constructor for the @NonNull field.\u003c/p\u003e\n\n\u003ch2\u003eBenefits\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003eReduces code verbosity\u003c/li\u003e\n    \u003cli\u003eImproves code readability\u003c/li\u003e\n    \u003cli\u003eDecreases the chance of errors in repetitive code\u003c/li\u003e\n    \u003cli\u003eSaves time in writing and maintaining boilerplate code\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eResources\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003e\u003ca href=\"https://projectlombok.org/\"\u003eOfficial Lombok Website\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://projectlombok.org/features/all\"\u003eLombok Features\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/rzwitserloot/lombok\"\u003eLombok GitHub Repository\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eContributing\u003c/h2\u003e\n\u003cp\u003eContributions to this project are welcome. Please fork the repository and submit a pull request with your changes.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecshekhar%2Felectra-lombok","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecshekhar%2Felectra-lombok","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecshekhar%2Felectra-lombok/lists"}