Repository navigation
Expand file tree
/
Copy pathNeighbor.java
More file actions
61 lines (53 loc) · 1.49 KB
/
Copy pathNeighbor.java
File metadata and controls
61 lines (53 loc) · 1.49 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package jota.model;
/**
* This class represents an Neighbor.
*
* @author pinpong
**/
public class Neighbor {
private String address;
private Integer numberOfAllTransactions;
private Integer numberOfInvalidTransactions;
private Integer numberOfNewTransactions;
/**
* Initializes a new instance of the Neighbor class.
*/
public Neighbor(String address, Integer numberOfAllTransactions, Integer numberOfInvalidTransactions, Integer numberOfNewTransactions) {
this.address = address;
this.numberOfAllTransactions = numberOfAllTransactions;
this.numberOfInvalidTransactions = numberOfInvalidTransactions;
this.numberOfNewTransactions = numberOfNewTransactions;
}
/**
* Get the address.
*
* @return The address.
*/
public String getAddress() {
return address;
}
/**
* Get the number of all transactions.
*
* @return The number of all transactions.
*/
public Integer getNumberOfAllTransactions() {
return numberOfAllTransactions;
}
/**
* Get the number of invalid transactions.
*
* @return The number of invalid transactions.
*/
public Integer getNumberOfInvalidTransactions() {
return numberOfInvalidTransactions;
}
/**
* Get the number of nwe transactions.
*
* @return The number of new transactions.
*/
public Integer getNumberOfNewTransactions() {
return numberOfNewTransactions;
}
}