{"id":31285716,"url":"https://github.com/trptr/java-wrapper","last_synced_at":"2026-06-08T16:06:11.017Z","repository":{"id":62435017,"uuid":"163191353","full_name":"trptr/java-wrapper","owner":"trptr","description":"Clojure wrappers for various Java classes.","archived":false,"fork":false,"pushed_at":"2019-01-28T21:46:18.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-24T08:40:21.031Z","etag":null,"topics":["clojure","java","locale","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trptr.png","metadata":{"files":{"readme":"README.md","changelog":"changes.md","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":"2018-12-26T15:04:47.000Z","updated_at":"2020-10-15T08:34:28.000Z","dependencies_parsed_at":"2022-11-01T21:02:18.264Z","dependency_job_id":null,"html_url":"https://github.com/trptr/java-wrapper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/trptr/java-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trptr%2Fjava-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trptr%2Fjava-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trptr%2Fjava-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trptr%2Fjava-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trptr","download_url":"https://codeload.github.com/trptr/java-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trptr%2Fjava-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069534,"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-08T02:00:07.615Z","response_time":111,"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":["clojure","java","locale","wrapper"],"created_at":"2025-09-24T08:14:27.146Z","updated_at":"2026-06-08T16:06:10.995Z","avatar_url":"https://github.com/trptr.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-wrapper\n\nClojure wrappers for various Java classes.\n\n[![Clojars Project](https://img.shields.io/clojars/v/trptr/java-wrapper.svg)](https://clojars.org/trptr/java-wrapper)\n\n## Goal\n\nProvide APIs for Java classes that make their usage comfortable within Clojure.\n\nFor example, compare the usage of `java.util.Locale$Builder.build` in the standard way:\n\n```clojure\n(-\u003e (Locale$Builder.)\n    (.setLanguage \"ru\")\n    (.setScript   \"Cyrl\")\n    (.build))\n```\nwith the equivalent code using `trptr.java-wrapper.locale/build`:\n\n```clojure\n(build {:language \"ru\"\n        :script   \"Cyrl\"})\n```\n\nThe latter is idiomatic Clojure, so can be used in idiomatic Clojure ways comfortably, e.g.\nthe map can be `merge`d with other maps, mappings can be `assoc`ed, `dissoc`ed or selected, etc.\n\nMoreover, in simpler cases a keyword (or a string...) can substitute a complete object,\nwhich is then created on the fly, behind the scenes, as needed:\n\n```clojure\n(get-display-name :de-ch :en)\n```\n\n(using `get-display-name` from the `ns` `trptr.java-wrapper.locale`) is equivalent to\n\n```clojure\n(.getDisplayName (Locale. \"de\" \"CH\") (Locale. \"en\"))\n```\n\n## Documentation\n\n* this readme\n* [API and namepace docs](http://trptr.github.io/java-wrapper/index.html)\n* [tests](test/trptr/java_wrapper): simple usage examples\n\n\n## Status\n\nThe latest version is 0.2.3, containing wrappers for 1 class: `java.util.Locale`.\n\nComing soon: `java.text.NumberFormat`.\n\nBug reports and new wrapper requests [are welcome](https://github.com/trptr/java-wrapper/issues/new/choose).\n\n\n## Usage\n\n### Via `deps.edn`\n\n#### Using a git url\n\nInclude a dependency on this repo in your `deps.edn`. For example:\n\n```clojure\n{:deps {org.clojure/clojure {:mvn/version \"1.10.0\"}\n        trptr/java-wrapper  {:git/url \"https://github.com/trptr/java-wrapper.git\"\n                             :sha     \"66a41e22bbdc67fab2a5039c551c5c79dc9b662f\"}}}\n```\n\n#### Using mvn version\n\nInclude a dependency on the mvn version in your `deps.edn`. For example:\n\n```clojure\n{:deps {org.clojure/clojure {:mvn/version \"1.10.0\"}\n        trptr/java-wrapper  {:mvn/version \"0.2.3\"}}}\n```\n### Via Leiningen\n\nInclude a dependency on the mvn version in your `project.clj`. For example:\n\n```clojure\n:dependencies [[org.clojure/clojure \"1.10.0\"]\n               [trptr/java-wrapper \"0.2.3\"]]\n```\n\n### Others\n\nSee https://clojars.org/trptr/java-wrapper.\n\n### Inside your `ns`\n\nRequire the proper trptr namespace(s). For example:\n\n```clojure\n(ns my-namespace\n    (:require [trptr.java-wrapper.locale :as jwl]))\n\n(defn -main\n  [\u0026 _]\n  (-\u003e\u003e jwl/available-locales\n       (map jwl/get-display-name)\n       sort\n       (clojure.string/join \"\\n\")\n       println))\n```\n\n## Copyright and License\n\nCopyright 2018, 2019 trptr\n\ntrptr/java-wrapper is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nIf you need other licensing, let me know!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrptr%2Fjava-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrptr%2Fjava-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrptr%2Fjava-wrapper/lists"}