From 06a7d6b611c1a41abd88634b71cb97f24e271471 Mon Sep 17 00:00:00 2001 From: "vkrus@ibagroup.eu" Date: Tue, 7 Nov 2023 18:33:34 +0100 Subject: [PATCH] IJMP-1320: documentation added. --- .../org/zowe/explorer/zowe/service/ZoweConfigServiceImpl.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/org/zowe/explorer/zowe/service/ZoweConfigServiceImpl.kt b/src/main/kotlin/org/zowe/explorer/zowe/service/ZoweConfigServiceImpl.kt index 84d484ab3..92d4b7e7c 100644 --- a/src/main/kotlin/org/zowe/explorer/zowe/service/ZoweConfigServiceImpl.kt +++ b/src/main/kotlin/org/zowe/explorer/zowe/service/ZoweConfigServiceImpl.kt @@ -177,6 +177,12 @@ class ZoweConfigServiceImpl(override val myProject: Project) : ZoweConfigService fun ZoweConfig.toConnectionConfig(zVersion: ZVersion = ZVersion.ZOS_2_1): ConnectionConfig = toConnectionConfig(getOrCreateUuid(), zVersion) + /** + * Compares only significant for real connection fields between 2 connections. + * @param connectionA first connection instance to compare. + * @param connectionB second connection instance to compare. + * @return true if all significant fields fo connections are equal and false otherwise. + */ fun compareConnections(connectionA: ConnectionConfig, connectionB: ConnectionConfig): Boolean { if (connectionA.name != connectionB.name) return false if (connectionA.url != connectionB.url) return false