Skip to content

Commit

Permalink
Update api/kogito-api/src/main/java/org/kie/kogito/internal/utils/Con…
Browse files Browse the repository at this point in the history
…versionUtils.java

Co-authored-by: Marián Macik <[email protected]>
  • Loading branch information
fjtirado and MarianMacik authored Jun 22, 2023
1 parent 58d7a95 commit 868390c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ public static <T> Collection<T> convertToCollection(Object value, Class<T> clazz
return convertToCollection(value, clazz, ",");
}

/**
* Converts a string into a list of objects
*
* @param <T>
* @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 <T> Collection<T> convertToCollection(Object value, Class<T> clazz, String separator) {
if (value == null) {
return Collections.emptyList();
Expand Down

0 comments on commit 868390c

Please sign in to comment.