• 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.datasources.utils.device.entity;
17 
18 import java.io.Serializable;
19 import java.util.Objects;
20 
21 /**
22  * TraceFileInfo
23  *
24  * @since 2021/5/19 16:39
25  */
26 public class TraceFileInfo implements Serializable {
27     private static final long serialVersionUID = 6310938366918639648L;
28 
29     private String version;
30     private long recordNum;
31     private long createTime;
32 
getVersion()33     public String getVersion() {
34         return version;
35     }
36 
setVersion(String version)37     public void setVersion(String version) {
38         this.version = version;
39     }
40 
getRecordNum()41     public long getRecordNum() {
42         return recordNum;
43     }
44 
setRecordNum(long recordNum)45     public void setRecordNum(long recordNum) {
46         this.recordNum = recordNum;
47     }
48 
getCreateTime()49     public long getCreateTime() {
50         return createTime;
51     }
52 
setCreateTime(long createTime)53     public void setCreateTime(long createTime) {
54         this.createTime = createTime;
55     }
56 
57     @Override
equals(Object obj)58     public boolean equals(Object obj) {
59         return super.equals(obj);
60     }
61 
62     @Override
clone()63     protected Object clone() throws CloneNotSupportedException {
64         return super.clone();
65     }
66 
67     @Override
hashCode()68     public int hashCode() {
69         return Objects.hash(version, recordNum, createTime);
70     }
71 
72     @Override
toString()73     public String toString() {
74         return "TraceFileInfo{"
75                 + "version='" + version + '\''
76                 + ", recordNum=" + recordNum
77                 + ", createTime=" + createTime
78                 + '}';
79     }
80 }
81