{"id":23814063,"url":"https://github.com/notjustanna/resources","last_synced_at":"2026-06-20T19:32:14.856Z","repository":{"id":103408916,"uuid":"192096401","full_name":"NotJustAnna/resources","owner":"NotJustAnna","description":"Lazily-initialized resource loading and Holder-like patterns.","archived":false,"fork":false,"pushed_at":"2023-07-27T00:40:23.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T20:16:28.386Z","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/NotJustAnna.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":"2019-06-15T15:49:43.000Z","updated_at":"2023-07-27T00:40:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"88b341e7-9176-4b7a-b6ce-aba6e643785c","html_url":"https://github.com/NotJustAnna/resources","commit_stats":null,"previous_names":["notjustanna/resources","annathelibri/resources"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NotJustAnna/resources","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Fresources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Fresources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Fresources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Fresources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotJustAnna","download_url":"https://codeload.github.com/NotJustAnna/resources/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJustAnna%2Fresources/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34583589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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-01-02T03:46:20.576Z","updated_at":"2026-06-20T19:32:14.835Z","avatar_url":"https://github.com/NotJustAnna.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resources\nLazily-initialized resource loading and Holder-like patterns.\n\nLicensed under the [MIT License](https://github.com/arudiscord/resources/blob/master/LICENSE).\n\n### Installation\n\n![Latest Version](https://api.bintray.com/packages/arudiscord/maven/resources/images/download.svg)\n\nUsing in Gradle:\n\n```gradle\nrepositories {\n  jcenter()\n}\n\ndependencies {\n  compile 'net.notjustanna.libs:resources:LATEST' // replace LATEST with the version above\n}\n```\n\nUsing in Maven:\n\n```xml\n\u003crepositories\u003e\n  \u003crepository\u003e\n    \u003cid\u003ecentral\u003c/id\u003e\n    \u003cname\u003ebintray\u003c/name\u003e\n    \u003curl\u003ehttp://jcenter.bintray.com\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003enet.notjustanna.libs\u003c/groupId\u003e\n    \u003cartifactId\u003eresources\u003c/artifactId\u003e\n    \u003cversion\u003eLATEST\u003c/version\u003e \u003c!-- replace LATEST with the version above --\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n### Usage\n\n- You can wrap already-available resources with ``Resource.of(T)``.\n- You can create lazily-loadable resources with ``Resource.of(Callable\u003cT\u003e)``. The lambda will be called on the first invocation.\n- You can wrap resources coming from Futures with ``Resource.ofFuture(Future\u003cT\u003e)``.\n- You can create settable resources, which let you control the state with the Resource with ``Resource.settable()``.\n- You can also make a unavailable resource with ``Resource.unavailable()``.\n\nExpected usage is as follows:\n\n```java\nResource\u003cString\u003e res = Resource.of(() -\u003e \"I am\".concat(\" a computer-expensive\").concat(\" operation\"));\n\nif (res.load()) {\n    String computed = res.getValue();\n} else {\n    System.out.println(\"Operation errored.\");\n}\n```\n\n### Support\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjustanna%2Fresources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotjustanna%2Fresources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjustanna%2Fresources/lists"}