Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gretel/hashmap
HashMap provides a standardized API for working with key / value pairs.
https://github.com/gretel/hashmap
Last synced: 3 days ago
JSON representation
HashMap provides a standardized API for working with key / value pairs.
- Host: GitHub
- URL: https://github.com/gretel/hashmap
- Owner: gretel
- Created: 2010-12-09T13:58:44.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-08-01T23:19:41.000Z (over 12 years ago)
- Last Synced: 2023-03-11T01:38:23.129Z (almost 2 years ago)
- Language: ActionScript
- Homepage: http://code.ericfeminella.com/classes/as3/HashMap.as.html
- Size: 148 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
HashMap provides a standardized API for working with key / value pairs.
The following example demonstrates a typical client implementation of a Hashmap
instance in which key / value pairs are added and retrieved.import com.ericfeminella.collections.HashMap;
import com.ericfeminella.collections.IMap;private function init() : void
{
var map:IMap = new HashMap();
map.put("a", "value A");
map.put("b", "value B");
map.put("c", "value C");
map.put("x", "value X");
map.put("y", "value Y");trace( map.getKeys() ); // b,x,z,a,c,y
trace( map.getValues() ); // value B,value X,value Z,value A,value C,value Y
trace( map.size() ); // 6
}Copyright (c) 2006 Eric J. Feminella
All rights reserved.
http://code.ericfeminella.com/classes/as3/HashMap.as.html