https://github.com/flipkart-incubator/javatuples
A fork of the popular 'javatuples' library, a typesafe representation of tuples in Java, with many improvements
https://github.com/flipkart-incubator/javatuples
java tuples
Last synced: 5 months ago
JSON representation
A fork of the popular 'javatuples' library, a typesafe representation of tuples in Java, with many improvements
- Host: GitHub
- URL: https://github.com/flipkart-incubator/javatuples
- Owner: flipkart-incubator
- License: apache-2.0
- Fork: true (javatuples/javatuples)
- Created: 2020-09-15T08:00:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T05:35:39.000Z (over 5 years ago)
- Last Synced: 2025-08-05T15:52:24.172Z (10 months ago)
- Topics: java, tuples
- Language: Java
- Homepage:
- Size: 155 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Java Tuples
This is a fork of the popular [javatuples](https://github.com/javatuples/javatuples) library with following improvements/fixes:
1. Built on Java 8 using Maven 3 with latest plugins
2. Serialization (with popular libraries such as Jackson etc.) working correctly
* Tested for tuples containing data types `boolean`, `int`, `String` and `double`
3. Minor lint-related improvements
Even with above improvements, this fork maintains:
1. No change from original in its interface (your existing code should compile just fine when you upgrade to this)
2. Zero dependency on any library (needs only JDK)
Read this good article on how to use: https://www.baeldung.com/java-tuples (except for the Maven dependency for which see below section)
## Usage
If you are using Maven, add below entry within the `dependencies` section of your `pom.xml`:
```xml
com.flipkart.utils
javatuples
3.0
```
See artifact details: [com.flipkart.utils:javatuples on **Maven Central**](https://search.maven.org/search?q=g:com.flipkart.utils%20AND%20a:javatuples&core=gav).
If you're using Gradle or Ivy or SBT, see how to include this library in your build:
[com.flipkart.utils:javatuples:3.0](https://mvnrepository.com/artifact/com.flipkart.utils/javatuples/3.0).
## How to build?
To build this project, follow below simple steps:
1. Do a `git clone` of this repository
2. Checkout latest stable version `git checkout v3.0`
3. Execute `mvn clean install` from shell