Skip to content

zhishaofei3/TypeScriptHashMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HashMap TypeScript版本

HashMap TypeScript版本

Usage

 var map = new HashMap();
 map.put("key1", "Value1");
 map.put("key2", "Value2");
 map.put("key3", "Value3");
 map.put("key4", "Value4");
 map.put("key5", "Value5");
 console.log("size:" + map.size() + " key1:" + map.get("key1"));
 map.remove("key1");
 map.put("key3", "newValue");
 var values = map.values();
 for (var i in values) {
 	console.log(i + ":" + values[i] + "   ");
 }
 var keySet = map.keySet();
 for (var i in keySet) {
 	console.log(i + ":" + keySet[i] + "  ");
 }
 console.log(map.isEmpty()); 

About

TypeScriptHashMap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published