Skip to content

Commit d7f8a85

Browse files
authored
Merge pull request #428 from com-pas/427-add-tcompasldevice-private-creation
feat(#427): Add TcompasLdevice private creation
2 parents d47bf74 + 915c84e commit d7f8a85

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sct-commons/src/main/java/org/lfenergy/compas/sct/commons/util/PrivateUtils.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,15 @@ public static TPrivate createPrivate(TCompasSystemVersion compasSystemVersion) {
153153
return createPrivate(objectFactory.createSystemVersion(compasSystemVersion));
154154
}
155155

156+
/**
157+
* Create Private of given type as parameter
158+
* @param tCompasLDevice type of Private to create
159+
* @return created Private
160+
*/
161+
public static TPrivate createPrivate(TCompasLDevice tCompasLDevice) {
162+
return createPrivate(objectFactory.createLDevice(tCompasLDevice));
163+
}
164+
156165
/**
157166
* Create a single Private of type COMPAS-Topo
158167
* containing all given TCompasTopo

0 commit comments

Comments
 (0)