new Interval(start, stop)
Constructs an interval from start to stop
Parameters:
Name | Type | Description |
---|---|---|
start | The lower endpoint | |
stop | The upper endpoint An interval representing all values between two endpoints. One endpoint may be undefined. |
Methods
equals(value) → {boolean}
Returns true if the values are equal
Parameters:
Name | Type | Description |
---|---|---|
value | Another attribute value |
Returns:
- Type:
- boolean
setStart(start)
Sets the lower endpoint. Pass undefined to denote an interval without lower endpoint
Parameters:
Name | Type | Description |
---|---|---|
start |
setStop(stop)
Sets the upper endpoint. Pass undefined to denote an interval without upper endpoint
Parameters:
Name | Type | Description |
---|---|---|
stop |
start()
Returns the lower endpoint, or undefined if the interval has no lower endpoint.
stop()
Returns the upper endpoint , or undefined if the interval has no upper endpoint.