forked from microsoftgraph/msgraph-sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Range.ts
41 lines (37 loc) · 970 Bytes
/
Range.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/**
* @module Range
*/
/**
* @class
* Class representing Range
*/
export class Range {
/**
* @public
* The minimum value of the range
*/
public minValue: number;
/**
* @public
* The maximum value of the range
*/
public maxValue: number;
/**
* @public
* @constructor
* Creates a range for given min and max values
* @param {number} [minVal = -1] - The minimum value.
* @param {number} [maxVal = -1] - The maximum value.
* @returns An instance of a Range
*/
public constructor(minVal: number = -1, maxVal: number = -1) {
this.minValue = minVal;
this.maxValue = maxVal;
}
}