From 9200382f2ce7b4bb729aa287d0878004b2d2b4f9 Mon Sep 17 00:00:00 2001 From: siddharth0905 Date: Mon, 23 Jul 2018 17:01:41 +0300 Subject: Refactoring Consolidation Service Changes as per comments Change-Id: Ic2c800513265daf4bbed1f15920864ba0cb28859 Issue-ID: SDC-1330 Signed-off-by: siddharth0905 --- .../src/main/java/org/openecomp/sdc/common/utils/CommonUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openecomp-be/lib/openecomp-common-lib/src/main/java/org') diff --git a/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/utils/CommonUtil.java b/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/utils/CommonUtil.java index dfd6b8d250..a7b17b7fe9 100644 --- a/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/utils/CommonUtil.java +++ b/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/utils/CommonUtil.java @@ -21,6 +21,8 @@ package org.openecomp.sdc.common.utils; import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.common.collect.Multimap; + import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.io.FilenameUtils; @@ -223,4 +225,8 @@ public class CommonUtil { } return objectAsMap; } + + public static boolean isMultimapEmpty(Multimap obj) { + return Objects.isNull(obj) || obj.isEmpty(); + } } -- cgit 1.2.3-korg