javatuples

Java library for tuples in Java.

License

License

GroupId

GroupId

com.flipkart.utils
ArtifactId

ArtifactId

javatuples
Last Version

Last Version

3.0
Release Date

Release Date

Type

Type

jar
Description

Description

javatuples
Java library for tuples in Java.
Project URL

Project URL

https://github.com/flipkart-incubator/javatuples
Project Organization

Project Organization

Flipkart
Source Code Management

Source Code Management

https://github.com/flipkart-incubator/javatuples

Download javatuples

How to add to project

<!-- https://jarcasting.com/artifacts/com.flipkart.utils/javatuples/ -->
<dependency>
    <groupId>com.flipkart.utils</groupId>
    <artifactId>javatuples</artifactId>
    <version>3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.flipkart.utils/javatuples/
implementation 'com.flipkart.utils:javatuples:3.0'
// https://jarcasting.com/artifacts/com.flipkart.utils/javatuples/
implementation ("com.flipkart.utils:javatuples:3.0")
'com.flipkart.utils:javatuples:jar:3.0'
<dependency org="com.flipkart.utils" name="javatuples" rev="3.0">
  <artifact name="javatuples" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.flipkart.utils', module='javatuples', version='3.0')
)
libraryDependencies += "com.flipkart.utils" % "javatuples" % "3.0"
[com.flipkart.utils/javatuples "3.0"]

Dependencies

test (4)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.11
junit : junit jar 4.13
com.fasterxml.jackson.core : jackson-databind jar 2.10.4
org.projectlombok : lombok jar 1.18.16

Project Modules

There are no modules declared in this project.

Java Tuples

This is a fork of the popular 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:

<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:

  1. Do a git clone of this repository
  2. Checkout latest stable version git checkout v3.0
  3. Execute mvn clean install from shell
com.flipkart.utils

Flipkart Incubator

Versions

Version
3.0
2.0