Package | com.threerings.util.maps |
Class | public class SortedMap |
Inheritance | SortedMap ![]() |
Method | Defined by | ||
---|---|---|---|
Construct a SortedMap.
| SortedMap | ||
forEach(fn:Function):void
Call the specified function to iterate over the mappings in this Map.
| SortedMap | ||
keys():Array
Return all the unique keys in this Map, in Array form.
| SortedMap | ||
values():Array
Return all the values in this Map, in Array form.
| SortedMap |
SortedMap | () | constructor |
public function SortedMap(source:Map, comp:Function = null)
Construct a SortedMap.
Parameterssource:Map — the backing Map
|
|
comp:Function (default = null ) — the Comparator used to sort the keys, or null to use Comparators.compareUnknown.
|
forEach | () | method |
public override function forEach(fn:Function):void
Call the specified function to iterate over the mappings in this Map.
Signature:
function (key :Object, value :Object) :void
or
function (key :Object, value :Object) :Boolean
If you return a Boolean, you may return true
to indicate that you've
found what you were looking for, and halt iteration.
fn:Function |
keys | () | method |
public override function keys():Array
Return all the unique keys in this Map, in Array form. The Array is not a 'view': it can be modified without disturbing the Map from whence it came.
ReturnsArray |
values | () | method |
public override function values():Array
Return all the values in this Map, in Array form. The Array is not a 'view': it can be modified without disturbing the Map from whence it came.
ReturnsArray |