From 868390c907be350795b027a126a00a7365936927 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Date: Thu, 22 Jun 2023 20:19:59 +0200 Subject: [PATCH] Update api/kogito-api/src/main/java/org/kie/kogito/internal/utils/ConversionUtils.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marián Macik --- .../org/kie/kogito/internal/utils/ConversionUtils.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/kogito-api/src/main/java/org/kie/kogito/internal/utils/ConversionUtils.java b/api/kogito-api/src/main/java/org/kie/kogito/internal/utils/ConversionUtils.java index 8a77e031dfe..5211d3cacfd 100644 --- a/api/kogito-api/src/main/java/org/kie/kogito/internal/utils/ConversionUtils.java +++ b/api/kogito-api/src/main/java/org/kie/kogito/internal/utils/ConversionUtils.java @@ -50,6 +50,15 @@ public static Collection convertToCollection(Object value, Class clazz return convertToCollection(value, clazz, ","); } + /** + * Converts a string into a list of objects + * + * @param + * @param value object to be converted into list + * @param clazz the item target class + * @param separator the separator of values + * @return a collection + */ public static Collection convertToCollection(Object value, Class clazz, String separator) { if (value == null) { return Collections.emptyList();