{"id":18466643,"url":"https://github.com/sbasalaev/sbasalaev-common","last_synced_at":"2025-05-04T18:16:54.952Z","repository":{"id":198914677,"uuid":"701803017","full_name":"SBasalaev/sbasalaev-common","owner":"SBasalaev","description":"Common goodies I use across my projects.","archived":false,"fork":false,"pushed_at":"2024-02-08T13:47:42.000Z","size":276,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T17:55:30.553Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SBasalaev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-07T15:49:42.000Z","updated_at":"2024-02-08T13:34:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5ad3f76-9c40-44e6-a600-c30bd16ad74e","html_url":"https://github.com/SBasalaev/sbasalaev-common","commit_stats":null,"previous_names":["sbasalaev/sbasalaev-common"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBasalaev%2Fsbasalaev-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBasalaev%2Fsbasalaev-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBasalaev%2Fsbasalaev-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SBasalaev%2Fsbasalaev-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SBasalaev","download_url":"https://codeload.github.com/SBasalaev/sbasalaev-common/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252377219,"owners_count":21738173,"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":[],"created_at":"2024-11-06T09:17:01.591Z","updated_at":"2025-05-04T18:16:54.919Z","avatar_url":"https://github.com/SBasalaev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## sbasalaev-common\n\n[![Latest release](https://img.shields.io/github/v/release/sbasalaev/sbasalaev-common)](https://github.com/SBasalaev/sbasalaev-common/releases/latest)\n[![Javadoc](https://img.shields.io/badge/javadoc-orange)](https://api.sbasalaev.me/sbasalaev-common)\n\nCommon goodies that I use across my projects.  These are everyday features that\nare not present in Java or were not available at the time of writing or just\nsome alternate APIs I comfortable with. The library includes:\n\n* Custom collections with a clear separation between read and write APIs, such as\n  [List](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/collection/List.html)\n  which only has read methods\n  and [MutableList](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/collection/MutableList.html)\n  which also has modification methods.\n* Functional transformations on collections through\n  [Traversable](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/collection/Traversable.html).\n  ```java\n  list(\"A\", \"BB\", \"CCC\").map(String::length).fold(0, Integer::sum)\n  ```\n  Java 1.8 introduced Stream API which is much more powerful.\n* Multimaps: [ListMultimap](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/collection/ListMultimap.html)\n  and [SetMultimap](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/collection/SetMultimap.html).\n  [Map](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/collection/Map.html)\n  is also a kind of multimap and shares common API with them.\n* [Opt](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/Opt.html)\n  for optional values. Java 1.8 introduced Optional that serves the same purpose\n  but is not a collection. I sometimes find it convenient to process an optional\n  value like\n  ```java\n  for (var value : optionalValue) {\n      // do something\n  }\n  ```\n* [Lazy](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/Opt.html)\n  for lazily evaluated values.\n* [TODO()](https://api.sbasalaev.me/sbasalaev-common/me.sbasalaev.common/me/sbasalaev/API.html#TODO(java.lang.String))\n  – one of the most useful functions during development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbasalaev%2Fsbasalaev-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbasalaev%2Fsbasalaev-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbasalaev%2Fsbasalaev-common/lists"}