Skip to content

Commit b10770a

Browse files
committed
U added parameterized constructors
1 parent 931c0b4 commit b10770a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

src/main/java/io/github/fvarrui/javapackager/model/ManifestSection.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ public class ManifestSection implements Serializable {
1313
private String name;
1414
private Map<String, String> entries = new HashMap<>();
1515

16+
public ManifestSection() {
17+
super();
18+
}
19+
20+
public ManifestSection(String name, Map<String, String> entries) {
21+
super();
22+
this.name = name;
23+
this.entries = entries;
24+
}
25+
1626
public String getName() {
1727
return name;
1828
}

src/main/java/io/github/fvarrui/javapackager/model/Registry.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ public class Registry implements Serializable {
1111
private static final long serialVersionUID = 8310081277297116023L;
1212

1313
private List<RegistryEntry> entries = new ArrayList<>();
14+
15+
public Registry() {
16+
super();
17+
}
18+
19+
public Registry(List<RegistryEntry> entries) {
20+
super();
21+
this.entries = entries;
22+
}
1423

1524
public List<RegistryEntry> getEntries() {
1625
return entries;

src/main/java/io/github/fvarrui/javapackager/model/RegistryEntry.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ public class RegistryEntry implements Serializable {
2727
* Windows Registry value data
2828
*/
2929
private String valueData = "";
30+
31+
public RegistryEntry() {
32+
super();
33+
}
34+
35+
public RegistryEntry(String key, String valueName, ValueType valueType, String valueData) {
36+
super();
37+
this.key = key;
38+
this.valueName = valueName;
39+
this.valueType = valueType;
40+
this.valueData = valueData;
41+
}
3042

3143
public String getKey() {
3244
return key;

0 commit comments

Comments
 (0)