| Package | org.servebox.commons.map |
| Interface | public interface IMap extends IBasicObject |
| Subinterfaces | ISortedMap |
| Implementors | DictionaryTable, Hashtable |
| Method | Defined by | ||
|---|---|---|---|
|
clear():void
Removes all mappings from this map (optional operation).
| IMap | ||
|
containsKey(key:Object):Boolean
Returns true if this map contains a mapping for the specified key.
| IMap | ||
|
containsValue(value:IBasicObject):Boolean
Returns true if this map maps one or more keys to the specified value.
| IMap | ||
![]() |
equals(value:IBasicObject):Boolean
Object comparison mechanism.
| IBasicObject | |
|
get(key:Object):IBasicObject
Returns the value to which this map maps the specified key.
| IMap | ||
![]() |
hashCode():int
Returns the hashcode of the object.
| IBasicObject | |
|
isEmpty():Boolean
Returns true if this map contains no key-value mappings.
| IMap | ||
|
keys():Array
Returns a view of the keys contained in this map.
| IMap | ||
|
keySet():Array
Returns a view of the keys contained in this map.
| IMap | ||
|
Copies the key/values pair using the specified set of keys to a new map instance.
| IMap | ||
|
put(key:Object, v:IBasicObject):Object
Associates the specified value with the specified key in this map (optional operation).
| IMap | ||
|
Copies all of the mappings from the specified map to this map (optional operation).
| IMap | ||
|
remove(key:Object):Object
Removes the mapping for this key from this map if present (optional operation).
| IMap | ||
|
size():int
Returns the number of key-value mappings in this map.
| IMap | ||
![]() |
toString():String
Returns the string representation of the specified object.
| IBasicObject | |
|
values():Array
Returns a collection view of the values contained in this map.
| IMap | ||
| clear | () | method |
public function clear():voidRemoves all mappings from this map (optional operation).
| 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 |
| get | () | method |
public function get(key:Object):IBasicObjectReturns the value to which this map maps the specified key.
Parameterskey:Object |
IBasicObject |
| isEmpty | () | method |
public function isEmpty():BooleanReturns true if this map contains no key-value mappings.
ReturnsBoolean |
| keys | () | method |
public function keys():ArrayReturns a view of the keys contained in this map.
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, v:IBasicObject):ObjectAssociates the specified value with the specified key in this map (optional operation).
Parameterskey:Object |
|
v:IBasicObject |
Object |
| putAll | () | method |
public function putAll(t:IMap):voidCopies all of the mappings from the specified map to this map (optional operation).
Parameterst:IMap |
| remove | () | method |
public function remove(key:Object):ObjectRemoves the mapping for this key from this map if present (optional operation).
Parameterskey:Object |
Object |
| size | () | method |
public function size():intReturns the number of key-value mappings in this map.
Returnsint |
| values | () | method |
public function values():ArrayReturns a collection view of the values contained in this map.
ReturnsArray |