new LocationPrecision(name, precision)
Constructor.
Extends:
Parameters:
Name | Type | Description |
---|---|---|
name |
string | the unique name for this precision |
precision |
number | a relative precision value for this precision |
Extends
Members
-
precision
-
Get the relative precision value.
This is an alias for
#name
. -
value
-
Get the comparable value.
- Inherited From:
Methods
-
<static> enumValues()
-
Get the
module:domain~LocationPrecisions
values. -
compareTo(other)
-
Compare two ComparableEnum objects based on their
value
values.Parameters:
Name Type Description other
ComparableEnum the object to compare to
- Inherited From:
Returns:
-1
ifthis.value
is less thanother.value
,1
ifthis.value
is greater thanother.value
,0
otherwise (when the values are equal)- Type
- number