{"id":18691044,"url":"https://github.com/ffissore/steroidmap","last_synced_at":"2026-07-05T22:31:14.565Z","repository":{"id":144610873,"uuid":"55507575","full_name":"ffissore/SteroidMap","owner":"ffissore","description":"A Java 8+ fluent map interface","archived":false,"fork":false,"pushed_at":"2020-05-18T12:57:45.000Z","size":458,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T00:45:06.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ffissore.github.io/SteroidMap/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ffissore.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":"2016-04-05T12:52:54.000Z","updated_at":"2020-12-14T14:02:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"e77e80d0-fe4a-4d4a-9cd2-cccfb8a0fdc2","html_url":"https://github.com/ffissore/SteroidMap","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ffissore/SteroidMap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffissore%2FSteroidMap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffissore%2FSteroidMap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffissore%2FSteroidMap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffissore%2FSteroidMap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffissore","download_url":"https://codeload.github.com/ffissore/SteroidMap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffissore%2FSteroidMap/sbom","scorecard":{"id":398232,"data":{"date":"2025-08-11","repo":{"name":"github.com/ffissore/SteroidMap","commit":"c9bcca489b1df736849cf672a9f7996fdd051b18"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T19:32:04.967Z","repository_id":144610873,"created_at":"2025-08-18T19:32:04.968Z","updated_at":"2025-08-18T19:32:04.968Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281120832,"owners_count":26447214,"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-26T02:00:06.575Z","response_time":61,"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-11-07T10:53:02.074Z","updated_at":"2025-10-26T14:42:54.855Z","avatar_url":"https://github.com/ffissore.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Steroid Map\n\n![License](https://img.shields.io/github/license/ffissore/SteroidMap.svg)\n![Version](https://img.shields.io/maven-central/v/org.fissore.steroids/steroidmap.svg)\n[![security status](https://www.meterian.com/badge/gh/ffissore/SteroidMap/security)](https://www.meterian.com/report/gh/ffissore/SteroidMap)\n[![stability status](https://www.meterian.com/badge/gh/ffissore/SteroidMap/stability)](https://www.meterian.com/report/gh/ffissore/SteroidMap)\n\nSteroid Map is a Java 8 fluent interface that makes working with maps much easier. So much easier, that you'll start\nconsidering using maps instead of plain **old** java beans.\n\nSteroid Map was born to make it easier to both consume and produce JSON API responses without the need to back each and everyone of them with annotated java beans. It ended up being a replacement for java beans in general.\n\nSome advantages come from two technologies we were using: JSON APIs and SQL Mappers.\n\nWhen using maps, JSON (de)serializers output only what's in the map. Thus, if you want more data, you just put more data in the map. You don't need to add fields to a java bean and annotate them properly.\n\nWhen using maps, SQL mappers (like MyBatis) will produce lists of maps with the columns you put in your `select` statements. If you want more or less data, you change your `select` statements, thus modifying one single line of code.\nInstead, when using java beans, you also need to add and annotate fields. And if that java bean ends up having too much data for some JSON APIs, you end up writing different version of the same java bean (User, UserWithoutPassword, PublicUser...)\n\nIf you've just started with SteroidMap, its default implementation, [SMap](http://ffissore.github.io/SteroidMap/apidocs/index.html), has everything you need to play with it. And these are the only two classes of this project, in case you're wondering how much complex it is.\n\n## POM snippet\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.fissore.steroids\u003c/groupId\u003e\n  \u003cartifactId\u003esteroidmap\u003c/artifactId\u003e\n  \u003cversion\u003e3.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Examples\n\nHere are some example usages. [Actual code available on github](https://github.com/ffissore/SteroidMap/blob/master/src/test/java/org/fissore/steroids/ExamplesTest.java#L13).\n\nGiven the following map (here represented as JSON) stored in a variable `mymap` of type `SteroidMap\u003cString\u003e` or `SMap`:\n\n```json\n{\n    \"name\": \"John\",\n    \"surname\": \"Smith\",\n    \"address\": {\n        \"streetname\": \"One way\",\n        \"number\": 1\n    },\n    \"friends\": [{\n        \"name\": \"Jane\",\n        \"surname\": \"Doe\",\n        \"social\": \"twitter handle\"\n    }, {\n        \"name\": \"John\",\n        \"surname\": \"Doe\",\n        \"social\": \"facebook profile\"\n    }, {\n        \"name\": \"Jane\",\n        \"surname\": \"Smith\"\n    }]\n}\n```\n\n### Adding height and weight\n```java\nmymap\n    .add(\"height\", 187)\n    .add(\"weight\", 90);\n```\n\n### Getting the name\n```java\nString name = mymap.s(\"name\");\n```\n\n### Renaming a key\n```java\nmymap\n    .map(\"address\")\n    .renameKey(\"streetname\", \"street\");\n```\n\n### Getting the street name\n```java\nString streetname = mymap\n    .map(\"address\")\n    .s(\"streetname\");\n```\n\n### Collecting friends's names when their surname is \"Doe\"\n```java\nList\u003cString\u003e names = mymap\n    .maps(\"friends\")\n    .filter(friend -\u003e \"Doe\".equals(friend.s(\"surname\")))\n    .map(friend -\u003e friend.s(\"name\"))\n    .collect(Collectors.toList());\n```\n\n### Collecting friends with a social account\n```java\nList\u003cSMap\u003e friends = mymap\n    .maps(\"friends\")\n    .filter(friend -\u003e friend.valued(\"social\"))\n    .collect(Collectors.toList());\n```\n\n### Create a new map filtering mymap\n```java\nList\u003cSMap\u003e friendsSubMaps = mymap\n    .maps(\"friends\")\n    .map(friend -\u003e friend.subMap(\"name\", \"surname\"))\n    .collect(Collectors.toList());\n\nSMap submap = mymap\n    .subMap(\"name\", \"surname\")\n    .add(\"friends\", friendsSubMaps);\n```\n\nThis code creates a new map picking some values from input map and friends submaps. It will produce this\n\n```json\n{\n    \"name\": \"John\",\n    \"surname\": \"Smith\",\n    \"friends\": [{\n        \"name\": \"Jane\",\n        \"surname\": \"Doe\",\n    }, {\n        \"name\": \"John\",\n        \"surname\": \"Doe\",\n    }, {\n        \"name\": \"Jane\",\n        \"surname\": \"Smith\"\n    }]\n}\n```\n\n## Javadoc\n\nSteroidMap comes with short methods names for every data type available. Consult the [javadoc](http://ffissore.github.io/SteroidMap/apidocs/index.html) to have a list of them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffissore%2Fsteroidmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffissore%2Fsteroidmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffissore%2Fsteroidmap/lists"}