Using Pairs or 2-tuples in Java [duplicate]

My Hashtable in Java would benefit from a value having a tuple structure. What data structure can I use in Java to do that?

Hashtable<Long, Tuple<Set<Long>,Set<Long>>> table = ...

14 Answers
14

Leave a Comment