{"id":18012879,"url":"https://github.com/tonivade/equalizer","last_synced_at":"2025-04-04T14:15:29.473Z","repository":{"id":57723695,"uuid":"44413613","full_name":"tonivade/equalizer","owner":"tonivade","description":"Java Helper class to create nice equals methods","archived":false,"fork":false,"pushed_at":"2018-05-22T20:08:22.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T23:49:20.182Z","etag":null,"topics":["builder","equals","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tonivade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-16T22:21:08.000Z","updated_at":"2018-05-22T20:08:22.000Z","dependencies_parsed_at":"2022-08-27T05:10:34.753Z","dependency_job_id":null,"html_url":"https://github.com/tonivade/equalizer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonivade%2Fequalizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonivade%2Fequalizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonivade%2Fequalizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonivade%2Fequalizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonivade","download_url":"https://codeload.github.com/tonivade/equalizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190253,"owners_count":20898702,"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":["builder","equals","java"],"created_at":"2024-10-30T03:19:22.616Z","updated_at":"2025-04-04T14:15:29.453Z","avatar_url":"https://github.com/tonivade.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Equalizer\n=========\n\nEqualizer is a helper class in order to create nice equals method for your java classes.\n\nThere are some alternatives like commons-lang, guava or Object.equals, but all have the same problem:\n\n    @Override\n    public boolean equals(Object obj) {\n        if (this == obj) {\n            return true;\n        }\n        if (obj == null) {\n            return false;\n        }\n        if (getClass() != obj.getClass()) {\n            return false;\n        }\n        Data other = (Data) obj;\n        return Objects.equals(this.id, other.id) \u0026\u0026 Objects.equals(this.value, other.value);\n    }\n\nThere are some boilerplate code you have to include previously to the fields comparison.\n\nEqualizer tries to solve this problem:\n\n    @Override\n    public boolean equals(Object obj) {\n        return equalizer(this)\n            .append((one, other) -\u003e Objects.equals(one.id, other.id))\n            .append((one, other) -\u003e Objects.equals(one.value, other.value))\n            .applyTo(obj);\n    }\n\n[![Build Status](https://drone.io/github.com/tonivade/equalizer/status.png)](https://drone.io/github.com/tonivade/equalizer/latest)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonivade%2Fequalizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonivade%2Fequalizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonivade%2Fequalizer/lists"}