/** * Produce a string representation of the given iterable. * * @param iterable The iterable * @return The string representation */ public static String toString(Iterable<?> iterable) { return toString(",", iterable); }
/** * Produce a string representation of the given array. * * @param delimiter The delimiter * @param array The array * @return The string representation */ public static String toString(String delimiter, @Nullable Object[] array) { if (isEmpty(array)) { return ""; } List<Object> list = Arrays.asList(array); return CollectionUtils.toString(delimiter, list); } }
addConverter(Iterable.class, String.class, (object, targetType, context) -> Optional.of(CollectionUtils.toString(object)));
boolean result = areTypesCompatible(typeArguments); if (LOG.isTraceEnabled() && !result) { LOG.trace("Bean type {} is not compatible with candidate generic types [{}] of candidate {}", beanType, CollectionUtils.toString(typeArguments), candidate);
boolean result = areTypesCompatible(typeArguments); if (LOG.isTraceEnabled() && !result) { LOG.trace("Bean type {} is not compatible with candidate generic types [{}] of candidate {}", beanType, CollectionUtils.toString(typeArguments), candidate);