| Package | org.servebox.commons.map |
| Class | public class SortedDictionaryTable |
| Inheritance | SortedDictionaryTable DictionaryTable |
| Implements | ISortedMap |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new SortedDictionaryTable object.
| SortedDictionaryTable | ||
![]() |
clear():void
Removes all mappings from this map (optional operation).
| DictionaryTable | |
![]() |
Creates a shallow copy of this hashtable.
| DictionaryTable | |
|
Returns the comparator object.
| SortedDictionaryTable | ||
![]() |
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 | |
|
firstKey():Object
Returns the first key in the sorted map.
| SortedDictionaryTable | ||
![]() |
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 | |
|
headMap(toKey:String):ISortedMap
Retrieves the part of this map whose keys are strictly less than
toKey. | SortedDictionaryTable | ||
![]() |
isEmpty():Boolean
Tests if this dictionary maps no keys to value.
| DictionaryTable | |
|
keys():Array
Returns an Array of the keys in this dictionary.
| SortedDictionaryTable | ||
![]() |
keySet():Array
Returns a view of the keys contained in this map.
| DictionaryTable | |
|
lastKey():Object
Returns the last key in the sorted map.
| SortedDictionaryTable | ||
|
Copies the key/values pair using the specified set of keys to a new map instance.
| SortedDictionaryTable | ||
![]() |
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 | |
|
subMap(fromKey:String, toKey:String):ISortedMap
Retrieves the part of this map whose keys range from
fromKey, inclusive, to toKey, exclusive. | SortedDictionaryTable | ||
|
tailMap(fromKey:String):ISortedMap
Retrieves the part of this map whose keys are greater than or equal to fromKey.
| SortedDictionaryTable | ||
![]() |
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 | |
| SortedDictionaryTable | () | constructor |
public function SortedDictionaryTable(dt:DictionaryTable = null, comp:IComparator = null)Creates a new SortedDictionaryTable object.
Parametersdt:DictionaryTable (default = null) |
|
comp:IComparator (default = null) |
| comparator | () | method |
| firstKey | () | method |
public function firstKey():ObjectReturns the first key in the sorted map.
ReturnsObject |
| headMap | () | method |
public function headMap(toKey:String):ISortedMap
Retrieves the part of this map whose keys are strictly less than toKey.
toKey:String |
ISortedMap |
| keys | () | method |
public override function keys():ArrayReturns an Array of the keys in this dictionary.
ReturnsArray |
| lastKey | () | method |
public function lastKey():ObjectReturns the last key in the sorted map.
ReturnsObject |
| needleMap | () | method |
public override function needleMap(neededKeys:Array):IMapCopies the key/values pair using the specified set of keys to a new map instance.
ParametersneededKeys:Array |
IMap |
| subMap | () | method |
public function subMap(fromKey:String, toKey:String):ISortedMap
Retrieves the part of this map whose keys range from fromKey, inclusive, to toKey, exclusive.
fromKey:String |
|
toKey:String |
ISortedMap |
| tailMap | () | method |
public function tailMap(fromKey:String):ISortedMapRetrieves the part of this map whose keys are greater than or equal to fromKey.
ParametersfromKey:String |
ISortedMap |