https://subsecret.dk/index.php?title=Tuples&feed=atom&action=historyTuples - Revision history2024-03-28T14:23:01ZRevision history for this page on the wikiMediaWiki 1.41.0https://subsecret.dk/index.php?title=Tuples&diff=276&oldid=prevSteffen Mikkelsen: Created page with "=SubSecret Tuples= Since Java standard libraries does not include tuples, you will often need to either create tuples yourself or find existing libraries. There exist some rea..."2013-09-29T15:16:42Z<p>Created page with "=SubSecret Tuples= Since Java standard libraries does not include tuples, you will often need to either create tuples yourself or find existing libraries. There exist some rea..."</p>
<p><b>New page</b></p><div>=SubSecret Tuples=<br />
Since Java standard libraries does not include tuples, you will often need to either create tuples yourself or find existing libraries.<br />
There exist some really well implemented libraries out there, but you usually get more than you need. This is a single class implementation of Tuple1 to Tuple5. Instead of having to include an extra .jar file, simple copy this one class into your project wherever you want. The tuple implementation supports equals() and is Serializable.<br />
<br />
=Usage=<br />
String elemOne = "Test";<br />
int elemTwo = 5;<br />
Tuple2<String, Integer> tuple2 = Tuple2.of(elemOne,elemTwo);<br />
<br />
=Download=<br />
<br />
{| class="wikitable"<br />
!Date<br />
!Version<br />
!File<br />
!Description<br />
|-<br />
|29. September 2013<br />
|1.00<br />
|http://files.subsecret.dk/Tuples100.zip<br />
|Initial release<br />
|}<br />
<br />
=License=<br />
No license. Do whatever you want with it.</div>Steffen Mikkelsen