Skip to content

Commit 488892a

Browse files
author
[a561842] Hubert Marteau
committed
Add constructor with fileds to AssetParams
1 parent 69ed608 commit 488892a

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

src/multichain/object/queryobjects/AssetParams.java

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,18 @@
1515
* @version 1.0
1616
*/
1717
public class AssetParams {
18-
String name;
19-
boolean open;
18+
String name;
19+
boolean open;
20+
21+
/**
22+
* @param name
23+
* @param open
24+
*/
25+
public AssetParams(String name, boolean open) {
26+
super();
27+
this.name = name;
28+
this.open = open;
29+
}
2030

2131
public void isFilled() throws MultichainException {
2232
MultichainTestParameter.isNotNullOrEmpty("name", getName());
@@ -28,20 +38,25 @@ public void isFilled() throws MultichainException {
2838
public String getName() {
2939
return name;
3040
}
41+
3142
/**
32-
* @param name the name to set
43+
* @param name
44+
* the name to set
3345
*/
3446
public void setName(String name) {
3547
this.name = name;
3648
}
49+
3750
/**
3851
* @return the open
3952
*/
4053
public boolean isOpen() {
4154
return open;
4255
}
56+
4357
/**
44-
* @param open the open to set
58+
* @param open
59+
* the open to set
4560
*/
4661
public void setOpen(boolean open) {
4762
this.open = open;

0 commit comments

Comments
 (0)