Skip to content

Instantly share code, notes, and snippets.

@rokon12
Created January 25, 2017 16:50
Show Gist options
  • Save rokon12/98a53bd68ef3bab47b425e142c2f8933 to your computer and use it in GitHub Desktop.
Save rokon12/98a53bd68ef3bab47b425e142c2f8933 to your computer and use it in GitHub Desktop.
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class MapInSideMap {
@Test
public void testMap() {
Map<String, String> map = new HashMap<>();
Map<String, Map<String, Boolean>> mapMap = new HashMap<>();
Map<String, Dto> dtoMap = new HashMap<>();
// you can crate tuple
// I have created here : https://github.com/rokon12/tuple/tree/master/src/main/java/com/bazlur/tuple
// you can store up to 10 value in one tuple
//eg.
// Map<String, Tuple10> dtoMap = new HashMap<>();
}
//create another class
public class Dto {
String aString;
boolean aBoolean;
//getter setter
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment