HashMap -> HashObjectMap
Hashtable -> HashMap The one regularly used is now called HashMap. It can have keys of simple flash datatypes, as well as objects that implement Hashable. HashObjectMap has the ability to use nearly any object as a key, but pays a price for it and should be avoided unless you need it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4591 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
package com.threerings.crowd.chat.client {
|
||||
|
||||
import com.threerings.util.ArrayUtil;
|
||||
import com.threerings.util.Hashtable;
|
||||
import com.threerings.util.HashMap;
|
||||
import com.threerings.util.Map;
|
||||
import com.threerings.util.ObserverList;
|
||||
import com.threerings.util.ResultListener;
|
||||
@@ -899,7 +899,7 @@ public class ChatDirector extends BasicDirector
|
||||
*/
|
||||
internal function getCommandHandlers (command :String) :Map
|
||||
{
|
||||
var matches :Map = new Hashtable();
|
||||
var matches :Map = new HashMap();
|
||||
var user :BodyObject =
|
||||
(_cctx.getClient().getClientObject() as BodyObject);
|
||||
var keys :Array = _handlers.keys();
|
||||
@@ -1024,7 +1024,7 @@ public class ChatDirector extends BasicDirector
|
||||
|
||||
/** A mapping from auxiliary chat objects to the types under which
|
||||
* they are registered. */
|
||||
protected var _auxes :Hashtable = new Hashtable();
|
||||
protected var _auxes :HashMap = new HashMap();
|
||||
|
||||
/** Validator of who may be added to the chatters list. */
|
||||
protected var _chatterValidator :ChatterValidator;
|
||||
@@ -1036,7 +1036,7 @@ public class ChatDirector extends BasicDirector
|
||||
protected var _chatterObservers :ObserverList = new ObserverList();
|
||||
|
||||
/** Registered chat command handlers. */
|
||||
protected static const _handlers :Hashtable = new Hashtable();
|
||||
protected static const _handlers :HashMap = new HashMap();
|
||||
|
||||
/** A history of chat commands. */
|
||||
protected static const _history :Array = new Array();
|
||||
|
||||
Reference in New Issue
Block a user