If you want, you can use something like that
Map<Object,Map<String,String>>
This object can be an object of a class containing two lines. Hope this solves your problem.
Class Xyz { String s1; String s2; }
The Xyz object can be used as a key in the map above.
source share