| Package | org.servebox.commons.map |
| Class | public class DictionaryTable |
| Implements | IBasicObject, IMap |
| Subclasses | SortedDictionaryTable, WordIndex |
| Property | Defined by | ||
|---|---|---|---|
| _internalDict : Object
Storage object.
| DictionaryTable | ||
| _keys : Array
Keys cache.
| DictionaryTable | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new DictionaryTable object.
| DictionaryTable | ||
|
clear():void
Removes all mappings from this map (optional operation).
| DictionaryTable | ||
|
Creates a shallow copy of this hashtable.
| DictionaryTable | ||
|
contains(value:IBasicObject):Boolean
| DictionaryTable | ||
|
containsKey(key:Object):Boolean
Returns true if this map contains a mapping for the specified key.
| DictionaryTable | ||
|
containsValue(value:IBasicObject):Boolean
Returns true if this map maps one or more keys to the specified value.
| DictionaryTable | ||
|
elements():Array
| DictionaryTable | ||
|
equals(value:IBasicObject):Boolean
Compares the specified Object with this Map for equality, as per the definition in the Map interface.
| DictionaryTable | ||
|
get(key:Object):IBasicObject
| DictionaryTable | ||
|
getKey(value:Object):String
Return the key for the value
| DictionaryTable | ||
|
hashCode():int
Returns the hashcode of the object.
| DictionaryTable | ||
|
isEmpty():Boolean
Tests if this dictionary maps no keys to value.
| DictionaryTable | ||
|
keys():Array
Returns an Array of the keys in this dictionary.
| DictionaryTable | ||
|
keySet():Array
Returns a view of the keys contained in this map.
| DictionaryTable | ||
|
Copies the key/values pair using the specified set of keys to a new map instance.
| DictionaryTable | ||
|
put(key:Object, value:IBasicObject):Object
Maps the specified key to the specified value in this dictionary.
The DictionaryTable uses String instances as keys. | DictionaryTable | ||
|
Copies all of the mappings from the specified Map to this Hashtable
These mappings will replace any mappings that this Hashtable had for any of the keys currently in the specified Map.
| DictionaryTable | ||
|
remove(key:Object):Object
Removes the key (and its corresponding value) from this dictionary.
| DictionaryTable | ||
|
size():int
Returns the number of entries (distinct keys) in this dictionary.
| DictionaryTable | ||
|
toString():String
Returns the string representation of the specified object.
| DictionaryTable | ||
|
values():Array
Returns a collection view of the values contained in this map.
| DictionaryTable | ||
| _internalDict | property |
protected var _internalDict:ObjectStorage object.
| _keys | property |
protected var _keys:ArrayKeys cache.
| DictionaryTable | () | constructor |
public function DictionaryTable()Creates a new DictionaryTable object.
| clear | () | method |
public function clear():voidRemoves all mappings from this map (optional operation).
| clone | () | method |
public function clone():DictionaryTableCreates a shallow copy of this hashtable.
ReturnsDictionaryTable |
| contains | () | method |
| containsKey | () | method |
public function containsKey(key:Object):BooleanReturns true if this map contains a mapping for the specified key.
Parameterskey:Object |
Boolean |
| containsValue | () | method |
public function containsValue(value:IBasicObject):BooleanReturns true if this map maps one or more keys to the specified value.
Parametersvalue:IBasicObject |
Boolean |
| elements | () | method |
public function elements():ArrayReturns
Array |
| equals | () | method |
public function equals(value:IBasicObject):BooleanCompares the specified Object with this Map for equality, as per the definition in the Map interface.
Parametersvalue:IBasicObject |
Boolean |
| get | () | method |
| getKey | () | method |
public function getKey(value:Object):StringReturn the key for the value
Parametersvalue:Object |
String |
| hashCode | () | method |
public function hashCode():intReturns the hashcode of the object.
Returnsint |
| isEmpty | () | method |
public function isEmpty():BooleanTests if this dictionary maps no keys to value.
ReturnsBoolean |
| keys | () | method |
public function keys():ArrayReturns an Array of the keys in this dictionary.
ReturnsArray |
| keySet | () | method |
public function keySet():ArrayReturns a view of the keys contained in this map.
ReturnsArray |
| needleMap | () | method |
public function needleMap(neededKeys:Array):IMapCopies the key/values pair using the specified set of keys to a new map instance.
ParametersneededKeys:Array |
IMap |
| put | () | method |
public function put(key:Object, value:IBasicObject):Object
Maps the specified key to the specified value in this dictionary.
The DictionaryTable uses String instances as keys.
key:Object |
|
value:IBasicObject |
Object |
| putAll | () | method |
public function putAll(t:IMap):voidCopies all of the mappings from the specified Map to this Hashtable These mappings will replace any mappings that this Hashtable had for any of the keys currently in the specified Map.
Parameterst:IMap |
| remove | () | method |
public function remove(key:Object):ObjectRemoves the key (and its corresponding value) from this dictionary.
Parameterskey:Object |
Object |
| size | () | method |
public function size():intReturns the number of entries (distinct keys) in this dictionary.
Returnsint |
| toString | () | method |
public function toString():StringReturns the string representation of the specified object.
ReturnsString |
| values | () | method |
public function values():ArrayReturns a collection view of the values contained in this map.
ReturnsArray |