new $k.Interval(start, stop)
Constructs an interval from start to stop
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() : boolean
Returns true if the values are equal
Returns:
Type | Description |
---|---|
boolean |
setStart(start)
Sets the lower endpoint. Pass undefined to denote an interval without lower endpoint
Name | Type | Description |
---|---|---|
start |
setStop(stop)
Sets the upper endpoint. Pass undefined to denote an interval without upper endpoint
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.