Coverage Summary for Class: BootstrapDataEntry (co.rsk.db.importer.provider.index.data)
Class |
Class, %
|
Method, %
|
Line, %
|
BootstrapDataEntry |
0%
(0/1)
|
0%
(0/6)
|
0%
(0/11)
|
1 /*
2 * This file is part of RskJ
3 * Copyright (C) 2019 RSK Labs Ltd.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 package co.rsk.db.importer.provider.index.data;
20
21 import com.fasterxml.jackson.annotation.JsonCreator;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23
24 public class BootstrapDataEntry {
25
26 private long height;
27
28 private String date;
29 private String db;
30 private String hash;
31 private BootstrapDataSignature sig;
32
33 @JsonCreator
34 public BootstrapDataEntry(
35 @JsonProperty("height") long height,
36 @JsonProperty("date") String date,
37 @JsonProperty("db") String db,
38 @JsonProperty("hash") String hash,
39 @JsonProperty("sig") BootstrapDataSignature sig) {
40 this.height = height;
41 this.date = date;
42 this.db = db;
43 this.hash = hash;
44 this.sig = sig;
45 }
46
47 public long getHeight() {
48 return height;
49 }
50
51 public BootstrapDataSignature getSig() {
52 return sig;
53 }
54
55 public String getDate() {
56 return date;
57 }
58
59 public String getDb() {
60 return db;
61 }
62
63 public String getHash() {
64 return hash;
65 }
66 }