Repository navigation
Expand file tree
/
Copy pathInput.java
More file actions
110 lines (96 loc) · 2.07 KB
/
Copy pathInput.java
File metadata and controls
110 lines (96 loc) · 2.07 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package jota.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* This class represents an Input.
*
* @author Adrian
**/
public class Input {
private String address;
private long balance;
private int keyIndex;
private int security;
/**
* Initializes a new instance of the Input class.
*/
public Input(String address, long balance, int keyIndex, int security) {
this.address = address;
this.balance = balance;
this.keyIndex = keyIndex;
this.security = security;
}
/**
* Returns a String that represents this object.
*
* @return Returns a string representation of this object.
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
/**
* Get the address.
*
* @return The address.
*/
public String getAddress() {
return address;
}
/**
* Get the address.
*
* @param address The address.
*/
public void setAddress(String address) {
this.address = address;
}
/**
* Get the balance.
*
* @return The balance.
*/
public long getBalance() {
return balance;
}
/**
* Get the balance.
*
* @param balance The balance.
*/
public void setBalance(long balance) {
this.balance = balance;
}
/**
* Get the keyIndex.
*
* @return The keyIndex.
*/
public int getKeyIndex() {
return keyIndex;
}
/**
* Get the keyIndex.
*
* @param keyIndex The keyIndex.
*/
public void setKeyIndex(int keyIndex) {
this.keyIndex = keyIndex;
}
/**
* Get the security.
*
* @return The security.
*/
public int getSecurity() {
return security;
}
/**
* Get the security.
*
* @param security The security.
*/
public void setSecurity(int security) {
this.security = security;
}
}