Packageorg.as3collections
Classpublic class SortMapBy
InheritanceSortMapBy Inheritance org.as3coreaddendum.system.Enum

The enumeration class that defines the acceptable values for sort maps by keys or values.

This is a type-safe enumeration class, which means there is no possibility of creating instances externally. All acceptable values will be created automaticaly by this class internaly, through the constants.



Public Methods
 MethodDefined By
  
SortMapBy(name:String, ordinal:int)
Constructor, creates a new SortMapBy object.
SortMapBy
Public Constants
 ConstantDefined By
  KEY : SortMapBy
[static] Defines the constant that indicates that the map should be sorted by its keys.
SortMapBy
  VALUE : SortMapBy
[static] Defines the constant that indicates that the map should be sorted by its values.
SortMapBy
Constructor Detail
SortMapBy()Constructor
public function SortMapBy(name:String, ordinal:int)

Constructor, creates a new SortMapBy object.

Parameters
name:String — The name of this enumeration constant.
 
ordinal:int — The ordinal of this enumeration constant, that is its position in the enum declaration (where the initial constant is assigned an ordinal of zero).

Throws
IllegalOperationError — If there is an attempt to instantiation outside the internal code of this class. All acceptable values will be created automaticaly by this class internaly, through the constants. There's no possibility to use this constructor externally.
Constant Detail
KEYConstant
public static const KEY:SortMapBy

Defines the constant that indicates that the map should be sorted by its keys.

VALUEConstant 
public static const VALUE:SortMapBy

Defines the constant that indicates that the map should be sorted by its values.