• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos.devtools.views.charts.model;
17 
18 /**
19  * Time range of chart data
20  *
21  * @since 2021/5/19 16:39
22  */
23 public class ChartDataRange {
24     /**
25      * Start time
26      */
27     private int startTime = Integer.MIN_VALUE;
28 
29     /**
30      * End time
31      */
32     private int endTime = Integer.MAX_VALUE;
33 
getStartTime()34     public int getStartTime() {
35         return startTime;
36     }
37 
setStartTime(int startTime)38     public void setStartTime(int startTime) {
39         this.startTime = startTime;
40     }
41 
getEndTime()42     public int getEndTime() {
43         return endTime;
44     }
45 
setEndTime(int endTime)46     public void setEndTime(int endTime) {
47         this.endTime = endTime;
48     }
49 
50     @Override
toString()51     public String toString() {
52         return "ChartDataRange{" + "startTime=" + startTime + ", endTime=" + endTime + '}';
53     }
54 }
55