| Package | org.servebox.commons.map |
| Interface | public interface ISortedMap extends IMap, IBasicObject |
| Implementors | SortedDictionaryTable |
| Method | Defined by | ||
|---|---|---|---|
![]() |
clear():void
Removes all mappings from this map (optional operation).
| IMap | |
|
Returns the comparator object.
| ISortedMap | ||
![]() |
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 | |
|
firstKey():Object
Returns the first key in the sorted map.
| ISortedMap | ||
![]() |
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 | |
|
headMap(toKey:String):ISortedMap
Retrieves the part of this map whose keys are strictly less than
toKey. | ISortedMap | ||
![]() |
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 | |
|
lastKey():Object
Returns the last key in the sorted map.
| ISortedMap | ||
![]() |
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 | |
|
subMap(fromKey:String, toKey:String):ISortedMap
Retrieves the part of this map whose keys range from
fromKey, inclusive, to toKey, exclusive. | ISortedMap | ||
|
tailMap(fromKey:String):ISortedMap
Retrieves the part of this map whose keys are greater than or equal to fromKey.
| ISortedMap | ||
![]() |
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 | |
| 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 |
| lastKey | () | method |
public function lastKey():ObjectReturns the last key in the sorted map.
ReturnsObject |
| 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 |