<abstract> new ComparableEnum(name, value)
Constructor.
Extends:
Parameters:
| Name | Type | Description | 
|---|---|---|
name | 
            
            string | the name  | 
        
value | 
            
            number | the comparable value  | 
        
Extends
Members
- 
    
name
 - 
    
    
Get the enum name.
- Inherited From:
 
 - 
    
value
 - 
    
    
Get the comparable value.
 
Methods
- 
    
<static> minimumEnumSet( [minEnum] [, cache])
 - 
    
    
Compute a complete set of enum values based on a minimum enum and/or set of enums.
If
cacheis provided, then results computed viaminAggregationwill be cached there, and subsequent calls will returned the cached result when appropriate.Parameters:
Name Type Argument Description minEnumComparableEnum <optional> 
a minimum enum value
cacheMap.<string, Set.<ComparableEnum>> <optional> 
a cache of computed values
Returns:
the computed set, or
nullif no values match- Type
 - Set.<ComparableEnum> | null
 
 - 
    
compareTo(other)
 - 
    
    
Compare two ComparableEnum objects based on their
valuevalues.Parameters:
Name Type Description otherComparableEnum the object to compare to
Returns:
-1ifthis.valueis less thanother.value,1ifthis.valueis greater thanother.value,0otherwise (when the values are equal)- Type
 - number