Repository navigation
Expand file tree
/
Copy pathInputs.java
More file actions
70 lines (60 loc) · 1.36 KB
/
Copy pathInputs.java
File metadata and controls
70 lines (60 loc) · 1.36 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
62
63
64
65
66
67
68
69
70
package jota.model;
import com.google.gson.Gson;
import java.util.List;
/**
* This class represents an Inputs.
*
* @author Adrian
**/
public class Inputs {
private List<Input> inputsList;
private long totalBalance;
/**
* Initializes a new instance of the Input class.
*/
public Inputs(List<Input> inputsList, long totalBalance) {
this.inputsList = inputsList;
this.totalBalance = totalBalance;
}
/**
* Returns a Json Object that represents this object.
*
* @return Returns a string representation of this object.
*/
@Override
public String toString() {
return new Gson().toJson(this);
}
/**
* Get the input list.
*
* @return The input list.
*/
public List<Input> getInputsList() {
return inputsList;
}
/**
* Set the input list.
*
* @param inputsList The input list.
*/
public void setInputsList(List<Input> inputsList) {
inputsList = inputsList;
}
/**
* Get the total balance.
*
* @return The total balance.
*/
public long getTotalBalance() {
return totalBalance;
}
/**
* Set the total balance.
*
* @param totalBalance The total balance.
*/
public void setTotalBalance(long totalBalance) {
this.totalBalance = totalBalance;
}
}