{"id":22177258,"url":"https://github.com/whaleal/tuple","last_synced_at":"2026-01-24T12:10:07.066Z","repository":{"id":41050731,"uuid":"481444720","full_name":"whaleal/tuple","owner":"whaleal","description":"java tuple implementation","archived":false,"fork":false,"pushed_at":"2022-06-20T14:02:23.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T18:57:09.379Z","etag":null,"topics":["java","tuples"],"latest_commit_sha":null,"homepage":"https://docs.whaleal.com/tuple/","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/whaleal.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":"2022-04-14T02:49:19.000Z","updated_at":"2024-03-31T14:25:44.000Z","dependencies_parsed_at":"2022-09-20T21:21:32.045Z","dependency_job_id":null,"html_url":"https://github.com/whaleal/tuple","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/whaleal/tuple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaleal%2Ftuple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaleal%2Ftuple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaleal%2Ftuple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaleal%2Ftuple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whaleal","download_url":"https://codeload.github.com/whaleal/tuple/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whaleal%2Ftuple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28727391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: 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":["java","tuples"],"created_at":"2024-12-02T08:26:39.264Z","updated_at":"2026-01-24T12:10:07.051Z","avatar_url":"https://github.com/whaleal.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuple\njava tuple implementation\n\n##  致自己\n专注元组操作\n\n\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://whaleal.com/\"\u003e\u003cimg src=\"https://docs.whaleal.com/images/logo1.png\" width=\"45%\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://whaleal.com/\"\u003e\u003cimg src=\"https://docs.whaleal.com/images/logo1.png\" width=\"45%\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cstrong\u003e仅仅一次方法调用就可以返回多个对象\u003c/strong\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t👉 \u003ca href=\"https://whaleal.com\"\u003ehttps://whaleal.com/\u003c/a\u003e 👈\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca target=\"_blank\" href=\"https://search.maven.org/artifact/com.whaleal/tuple\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/maven-central/v/com.whaleal/tuple.svg?label=Maven%20Central\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca target=\"_blank\" href=\"https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/JDK-8+-green.svg\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca target=\"_blank\" href='https://github.com/whaleal/tuple'\u003e\n\t\t\u003cimg src=\"https://img.shields.io/github/stars/whaleal/tuple.svg?style=social\" alt=\"github star\"/\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n\n-------------------------------------------------------------------------------\n\n[**🌎English Documentation**](README_En.md)\n\n-------------------------------------------------------------------------------\n\n## 📚简介\nTuple是一种数据结构，可存放多个元素，每个元素的数据类型可不同。\n\nTuple与List集合类似，但是不同的是，List集合只能存储一种数据类型，而Tuple可存储多种数据类型。Tuple在创建的时候，就可以直接指定多个元素数据类型。\n\nTuple是关系数据库中的基本概念，关系是一张表，表中的每行（即数据库中的每条记录）就是一个元组，每列就是一个属性。 在二维表里，元组也称为行。\n\n\n### 🍺Tuple能帮我们什么\n\n比如需要返回多个值这种场景，我们用java的话，一般是会定义一个model类，或者干脆直接放到Map中，\n这两种方式其实都不是很方便，一个需要频繁定义一些类，另一个对于返回值的类型我们并不知道。\n\nJava中Tuple最多支持我们创建十个返回值，其中tuple中的类型，我们可以随便存放，\n这里其实是用到了java中的泛型，来帮我们表示里面的类型\n\n-------------------------------------------------------------------------------\n\n\n## 📦安装\n\n### 🍊Maven\n在项目的pom.xml的dependencies中加入以下内容:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.whaleal\u003c/groupId\u003e\n    \u003cartifactId\u003etuple\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### 🍐Gradle\n```\nimplementation 'com.whaleal:tuple:0.1.0'\n```\n\n### 📥下载jar\n\n点击以下链接，下载`tuple-X.X.X.jar`即可：\n\n- [Maven中央库](https://repo1.maven.org/maven2/com/whaleal/tuple)\n\n\u003e 🔔️注意\n\u003e 所有版本编译起始均为JDK8+\n\n### 🚽编译安装\n\n访问tuple的github主页：[https://github.com/whaleal/tuple](https://github.com/whaleal/tuple) 下载整个项目源码然后进入tuple项目目录执行：\n\n进行基础的编译安装就可以了\n\n然后就可以使用Maven引入了。\n\n\n\n-------------------------------------------------------------------------------\n\n## 🏗️添砖加瓦\n\n### 🐞提供bug反馈或建议\n\n提交问题反馈请说明正在使用的JDK版本呢、tuple版本和相关依赖库版本。\n\n- [github issue](https://github.com/whaleal/tuple/issues)\n\n\n### 🧬贡献代码的步骤\n1. 在github issues 上找到需要修复的问题，或提出要贡献的特性内容\n2. 在github或者Github上fork项目到自己的repo\n3. 把fork过去的项目也就是你的项目clone到你的本地\n4. 修改代码并进行相关测试\n5. commit后push到自己的库\n6. 登录github或Github在你首页可以看到一个 pull request 按钮，点击它，选择自己的分支及本项目的分支，填写一些说明信息，然后提交即可。\n7. 等待维护者合并\n\n### 📐PR遵照的原则\n\ntuple欢迎任何人为tuple添砖加瓦，贡献代码，不过维护者是一个强迫症患者，为了照顾病人，需要提交的pr（pull request）符合一些规范，规范如下：\n\n1. 注释完备，尤其每个新增的方法应按照Java文档规范标明方法说明、参数说明、返回值说明等信息，必要时请添加单元测试，如果愿意，也可以加上你的大名。\n2. tuple的缩进按照IDEA,IDEA真香，默认（tab）缩进，所以请遵守（不要和我争执空格与tab的问题，这是一个病人的习惯）。\n3. 新加的方法不要使用第三方库的方法，tuple遵循无依赖原则（除非在extra模块中加方法工具）。\n\n\n-------------------------------------------------------------------------------\n\n\n## ⭐欢迎关注\n\n如果你觉得本项目还不错，欢迎持续关注，在此表示感谢^_^。\n\n\n\n## 其他相关项目\n[Project](https://docs.whaleal.com/project)\n\n## 社区支持\n本项目由 [whaleal社区](https://www.whaleal.com/)提供支持\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhaleal%2Ftuple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhaleal%2Ftuple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhaleal%2Ftuple/lists"}