- Created a Map interface.

- Renamed HashMap Hashtable, because I wanted a version without ties to
  mx.* code. User-defined hashing functions may be specified.
- Created a subclass of Hashtable called HashMap which uses
  functions in mx.utils.ObjectUtil to hash non-Hashable complex keys.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4120 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-16 19:02:24 +00:00
parent 470c46acf5
commit f778c1e518
3 changed files with 400 additions and 293 deletions
+20
View File
@@ -0,0 +1,20 @@
package com.threerings.util {
public interface Map
{
function clear () :void;
function containsKey (key :Object) :Boolean;
function get (key :Object) :*;
function isEmpty () :Boolean;
function put (key :Object, value :Object) :*;
function remove (key :Object) :*;
function size () :int;
}
}