diff options
author | siddharth0905 <siddharth.singh4@amdocs.com> | 2018-07-23 17:01:41 +0300 |
---|---|---|
committer | siddharth0905 <siddharth.singh4@amdocs.com> | 2018-07-27 19:28:56 +0530 |
commit | 9200382f2ce7b4bb729aa287d0878004b2d2b4f9 (patch) | |
tree | ceb5b59cad31fe7b9d507ca6399119aa398205e3 /openecomp-be/lib/openecomp-common-lib/src/main/java | |
parent | ae5a3714376a5f4492470fbf9b54046c1229171d (diff) |
Refactoring Consolidation Service
Changes as per comments
Change-Id: Ic2c800513265daf4bbed1f15920864ba0cb28859
Issue-ID: SDC-1330
Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-common-lib/src/main/java')
-rw-r--r-- | openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/utils/CommonUtil.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 <K, V> boolean isMultimapEmpty(Multimap<K, V> obj) { + return Objects.isNull(obj) || obj.isEmpty(); + } } |