Java Tuples
This is a fork of the popular javatuples library with following improvements/fixes:
- Built on Java 8 using Maven 3 with latest plugins
- Serialization (with popular libraries such as Jackson etc.) working correctly
- Tested for tuples containing data types
boolean
,int
,String
anddouble
- Tested for tuples containing data types
- Minor lint-related improvements
Even with above improvements, this fork maintains:
- No change from original in its interface (your existing code should compile just fine when you upgrade to this)
- 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
:
<dependency>
<groupId>com.flipkart.utils</groupId>
<artifactId>javatuples</artifactId>
<version>3.0</version>
</dependency>
See artifact details: com.flipkart.utils:javatuples on Maven Central.
If you're using Gradle or Ivy or SBT, see how to include this library in your build: com.flipkart.utils:javatuples:3.0.
How to build?
To build this project, follow below simple steps:
- Do a
git clone
of this repository - Checkout latest stable version
git checkout v3.0
- Execute
mvn clean install
from shell