{"id":20649925,"url":"https://github.com/micartey/shallow-copy","last_synced_at":"2026-04-21T11:01:55.258Z","repository":{"id":157471871,"uuid":"633103909","full_name":"micartey/shallow-copy","owner":"micartey","description":"Java shallow copy library to create copys of objects faster","archived":false,"fork":false,"pushed_at":"2026-01-01T04:07:25.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-05T21:42:07.009Z","etag":null,"topics":["copy","deep-copy","java","performance","shallow-copy"],"latest_commit_sha":null,"homepage":"","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/micartey.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-04-26T19:39:02.000Z","updated_at":"2026-01-01T04:07:28.000Z","dependencies_parsed_at":"2025-03-09T20:42:13.378Z","dependency_job_id":null,"html_url":"https://github.com/micartey/shallow-copy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/micartey/shallow-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micartey%2Fshallow-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micartey%2Fshallow-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micartey%2Fshallow-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micartey%2Fshallow-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micartey","download_url":"https://codeload.github.com/micartey/shallow-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micartey%2Fshallow-copy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32088913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["copy","deep-copy","java","performance","shallow-copy"],"created_at":"2024-11-16T17:17:05.603Z","updated_at":"2026-04-21T11:01:55.238Z","avatar_url":"https://github.com/micartey.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shallow-copy\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.oracle.com/java/\"\u003e\n    \u003cimg\n      src=\"https://img.shields.io/badge/Written%20in-java-%23EF4041?style=for-the-badge\"\n      height=\"30\"\n    /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://jitpack.io/#micartey/shallow-copy/master-SNAPSHOT\"\u003e\n    \u003cimg\n      src=\"https://img.shields.io/badge/jitpack-master-%2321f21?style=for-the-badge\"\n      height=\"30\"\n    /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://micartey.github.io/shallow-copy/docs\" target=\"_blank\"\u003e\n    \u003cimg\n      src=\"https://img.shields.io/badge/javadoc-reference-5272B4.svg?style=for-the-badge\"\n      height=\"30\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## 📚 Introduction\n\n`shallow-copy` is a copy library for java which copies explicid non-final fields marked with `@Expose` to a new object. To be more precise, it sets the field of the copy to the value of the parent. This means that values that are called by reference are not realy copied and the reference is the same - only primitive types that are called by value and thus copied.\n\n\n**Motivation**\n\nCopying an object with either the provided copy function or a so called \"deep copy\" by serializing the object into json and back to an object using e.g. gson was to slow for my needs. Therefore I investigated what types of copy could be faster and ended up implementing a short, easy to use shallow copy library.\n\n## 📝 Getting started\n\nGiven this is you class you want to copy (often):\n\n```java\nimport me.micartey.shallowcopy.Expose;\n\npublic class TestClass {\n    \n    @Expose private boolean isCoding, isSleeping, isDebuging, isNotEating;\n\n}\n```\n\nYou can copy it's instance by following the example:\n\n\n```java\nTestClass test = new TestClass(...);\nTestClass copy = new ShallowCopy\u003c\u003e(TestClass.class).copy(test);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicartey%2Fshallow-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicartey%2Fshallow-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicartey%2Fshallow-copy/lists"}