Created
January 25, 2017 16:50
-
-
Save rokon12/98a53bd68ef3bab47b425e142c2f8933 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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