{"id":15415865,"url":"https://github.com/davidje13/multivaluecollections","last_synced_at":"2025-03-28T03:28:20.833Z","repository":{"id":151511131,"uuid":"145056771","full_name":"davidje13/MultivalueCollections","owner":"davidje13","description":"Java collections for multiple object types in one collection","archived":false,"fork":false,"pushed_at":"2018-08-17T01:30:53.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T14:02:52.253Z","etag":null,"topics":["java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidje13.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":"2018-08-17T01:30:35.000Z","updated_at":"2020-12-18T19:36:41.000Z","dependencies_parsed_at":"2023-05-18T18:30:56.437Z","dependency_job_id":null,"html_url":"https://github.com/davidje13/MultivalueCollections","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"6a596513023c67a2ac0a6f1c4f9fc75e9728238f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2FMultivalueCollections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2FMultivalueCollections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2FMultivalueCollections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidje13%2FMultivalueCollections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidje13","download_url":"https://codeload.github.com/davidje13/MultivalueCollections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245965447,"owners_count":20701668,"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","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":["java"],"created_at":"2024-10-01T17:10:03.283Z","updated_at":"2025-03-28T03:28:20.786Z","avatar_url":"https://github.com/davidje13.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multivalue Collections\n\nJava collection classes for situations where multiple types of object need to\nlive in one collection.\n\nCollections are immutable. Populating collections with values is achieved via\nbuilders.\n\n## Path\n\nPaths store a node-edge-node-edge-node pattern. They always start and finish on\na node.\n\nThe types of path supported are:\n\n- `LinkedPath` (backed by a doubly-linked-list)\n- `ArrayPath` (backed by an array)\n\nThe API for both is identical. The common interface is `ImmutablePath`.\n\n### Example\n\n```java\nimport com.davidje13.path.*;\n\nImmutablePath\u003cString, String\u003e path = LinkedPath.builder(\"node 1\")\n    .pushBack(\"edge 1\", \"node 2\")\n    .pushBack(\"edge 2\", \"node 3\")\n    .build();\n\nList\u003cString\u003e nodes = path.getNodesFromHead();\n// nodes = [\"node 1\", \"node 2\", \"node 3\"]\n\nList\u003cObject\u003e seen = new ArrayList();\npath.visitFromHead(\n    (node) -\u003e seen.add(node),\n    (edge) -\u003e seen.add(edge)\n);\n// seen = [\"node 1\", \"edge 1\", \"node 2\", \"edge 2\", \"node 3\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidje13%2Fmultivaluecollections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidje13%2Fmultivaluecollections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidje13%2Fmultivaluecollections/lists"}