- 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:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user