{"id":26022963,"url":"https://github.com/agrison/vavr-try-refactoring","last_synced_at":"2025-10-08T14:50:31.437Z","repository":{"id":145285736,"uuid":"335276224","full_name":"agrison/vavr-try-refactoring","owner":"agrison","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-02T12:44:21.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T10:43:03.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/agrison.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":"2021-02-02T12:08:53.000Z","updated_at":"2023-01-16T11:55:11.000Z","dependencies_parsed_at":"2023-04-21T09:46:43.051Z","dependency_job_id":null,"html_url":"https://github.com/agrison/vavr-try-refactoring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agrison/vavr-try-refactoring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fvavr-try-refactoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fvavr-try-refactoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fvavr-try-refactoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fvavr-try-refactoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agrison","download_url":"https://codeload.github.com/agrison/vavr-try-refactoring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fvavr-try-refactoring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278963614,"owners_count":26076541,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-03-06T10:37:36.296Z","updated_at":"2025-10-08T14:50:31.431Z","avatar_url":"https://github.com/agrison.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vavr refactoring kata\n\n## Goal\n\nThe goal of this kata is to refactor a piece of code using Vavr's `Try` and `Option` to make the code more idiomatic, safe and easier to maintain.\n\nFirst take a look at the `AccountService` class and its related `AccountServiceTest` test class.\n\n## Pre-requisites\n\n* Java 15\n  * though this example can be easily downgraded to Java 8 if needed\n* an IDE\n  * with the Lombok plugin\n* Maven    \n\n## Solution\n\nIf you want to see a solution, or if you're not able to find it you may take a look at the [solution](https://github.com/agrison/vavr-try-refactoring/tree/solution) branch.\n\n## Practical Vavr\n\nThis example is part of my book [Practical Vavr](https://leanpub.com/practical-vavr).\n\n![Practical Vavr](https://d2sofvawe08yqg.cloudfront.net/practical-vavr/hero?1607247071)\n\n**Practical Vavr** is all about making you want to use **Vavr** in your day to day Java programming.\n\nIf you want to improve the quality of your code by using a well-thought and beautifully designed functional programming \nlibrary for Java, then you need to adopt Vavr, and this book will help you put it in practice.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrison%2Fvavr-try-refactoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrison%2Fvavr-try-refactoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrison%2Fvavr-try-refactoring/lists"}