{"id":20385179,"url":"https://github.com/poad/tuple4j","last_synced_at":"2025-03-04T23:14:58.368Z","repository":{"id":47459758,"uuid":"91851061","full_name":"poad/tuple4j","owner":"poad","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-12T15:59:06.000Z","size":72,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T08:15:56.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/poad.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}},"created_at":"2017-05-19T22:53:01.000Z","updated_at":"2022-02-12T15:59:09.000Z","dependencies_parsed_at":"2022-08-03T05:00:56.200Z","dependency_job_id":null,"html_url":"https://github.com/poad/tuple4j","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poad%2Ftuple4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poad%2Ftuple4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poad%2Ftuple4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poad%2Ftuple4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poad","download_url":"https://codeload.github.com/poad/tuple4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241935267,"owners_count":20044827,"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":[],"created_at":"2024-11-15T02:32:47.596Z","updated_at":"2025-03-04T23:14:58.339Z","avatar_url":"https://github.com/poad.png","language":"Java","readme":"Tuple for Java\n==========\n\n[![Build Status](https://travis-ci.org/poad/tuple4j.svg?branch=master)](https://travis-ci.org/poad/tuple4j)\n\nThe tuple4j provides the tuple for Java.\n\n## What is Tuple?\n[Wikipedia](https://en.wikipedia.org/wiki/Tuple)\n\n## Usage\n### When group of two values.\n```$java\nPair\u003cIntger, Intger\u003e pair = Pair.of(10, 20);\n\nSystemm.out.println(pair._1);   // 10\nSystemm.out.println(pair._2);   // 20\n\nPair\u003cString, List\u003cLong\u003e\u003e pair2 = Pair.of(\"hoge\", Arrays.asList(20L, 30L));\n\norg.junit.Assert.Assert.assetEquals(pair2._1, \"hoge\"); // passed\norg.junit.Assert.Assert.assetEquals(pair2._2, Arrays.asList(20L, 30L)); // passed\n```\n\n### When group of three values.\n```$java\nTriple\u003cIntger, Intger, String\u003e triple = Triple.of(10, 20, \"a\");\n\nSystemm.out.println(triple._1);   // 10\nSystemm.out.println(triple._2);   // 20\nSystemm.out.println(triple._3);   // \"a\"\n```\n\n## Why do you not encapsulate a properties?\nThere are the following reasons for it.\n- make it as immutable object\n- refer to [Tuple of Scaa](https://github.com/poad/tuple4j/blob/master/src/test/scala/com/github/poad/functional/type/tuple/exammple/TupleExample.scala)\n\n### Use by Maven\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.poad\u003c/groupId\u003e\n    \u003cartifactId\u003etuple4j\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Use by Gradle\n```bazaar\ncompile 'com.github.poad:tuple4j:0.0.2'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoad%2Ftuple4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoad%2Ftuple4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoad%2Ftuple4j/lists"}