Tuples
Convenient java tuples library.
How to get it?
You can use it as a maven dependency:
<dependency>
<groupId>org.jmmo</groupId>
<artifactId>tuples</artifactId>
<version>1.4</version>
</dependency>
Or download the latest build at: https://github.com/Megaprog/tuples/releases
How to use it?
Tuple2 pair = Tuples.of("a", 1);
Tuple3 triplet = Tuples.of("a", 1, 2.0);