Skip to content

Commit 915c84e

Browse files
committed
feat(#427): Add TcompasLdevice private creation
Signed-off-by: gleizesDor <[email protected]>
1 parent d47bf74 commit 915c84e

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)