{"id":16175682,"url":"https://github.com/osiris-team/jlib","last_synced_at":"2025-10-08T21:45:33.939Z","repository":{"id":46188599,"uuid":"319680776","full_name":"Osiris-Team/jlib","owner":"Osiris-Team","description":"Frequently used code across all my Java projects inside one jar.","archived":false,"fork":false,"pushed_at":"2024-09-02T12:19:34.000Z","size":200,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T20:53:27.310Z","etag":null,"topics":[],"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/Osiris-Team.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":"2020-12-08T15:30:22.000Z","updated_at":"2024-09-02T12:19:20.000Z","dependencies_parsed_at":"2023-02-17T06:00:55.466Z","dependency_job_id":"92f2773e-5a65-4dfd-9a59-50e5bf7c1986","html_url":"https://github.com/Osiris-Team/jlib","commit_stats":null,"previous_names":[],"tags_count":147,"template":false,"template_full_name":null,"purl":"pkg:github/Osiris-Team/jlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osiris-Team%2Fjlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osiris-Team%2Fjlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osiris-Team%2Fjlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osiris-Team%2Fjlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Osiris-Team","download_url":"https://codeload.github.com/Osiris-Team/jlib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osiris-Team%2Fjlib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000702,"owners_count":26082837,"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":"2024-10-10T04:45:31.001Z","updated_at":"2025-10-08T21:45:33.906Z","avatar_url":"https://github.com/Osiris-Team.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jlib\nFrequently used code across all my Java projects inside one jar.\n[Click here for maven/gradle/sbt/leinigen instructions](https://jitpack.io/#Osiris-Team/jlib/LATEST) (Java 8 or higher required).\n\n### Logging\nThe `AL` class (short for AutoPlug-Logger) contains static methods for logging\nwith 4 levels: error, warn, info, and debug. All messages are pre-formatted\nand support ANSI colors. \n\nIt also allows registering listeners for specific or all messages and \nmirroring the console output to multiple files easily.\n\n### Json\nThe `Json` class contains static methods for retrieving Json from an `URL`\nand parsing it from/to a String. Under the hood it uses the `Gson` library (probably\nthe fastest Json library for Java).\n\nThe abstract `JsonFile` class is optimal when you need json configurations for example.\nIt makes serialisation easy and removes boilerplate, here is an example:\n```java\nclass MyConfig extends JsonFile{\n    public String appName = \"My cool app\";\n    public String version = 1;\n    \n    public Person(){\n        //load() // Do NOT call load inside the constructor\n        \n        // This creates the file if not existing and fills it\n        // with the default values above.\n        super(new File(\"my-config.json\"));\n        \n        version = 2;\n        save(); // To update \"version\" also in person.json (async).\n        saveNow(); // Same as above, but blocks until finished.\n    }\n}\n```\n\n### Sorting\nThe `QuickSort` class implements the QuickSort algorithm and provides useful\nstatic methods to sort **arrays** and **lists** of any type (including `JsonArrays`). Usage example:\n```java\nnew QuickSort().sortJsonArray(arr, (thisEl, otherEl) -\u003e {\n    int thisId = thisEl.el.getAsJsonObject().get(\"id\").getAsInt();\n    int otherId = otherEl.el.getAsJsonObject().get(\"id\").getAsInt();\n    return Integer.compare(thisId, otherId);\n});\n```\n\n### Update finder\nThe `Search` class contains methods for finding assets/updates on Maven and Github.\n\n### UFDataIn/Out for enhanced Networking\nAllows sending/receiving streams and files. Based on DataInput/OutputStream classes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosiris-team%2Fjlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosiris-team%2Fjlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosiris-team%2Fjlib/lists"}