Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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