result[i] = capitalizeWords(target[i], delimiters);
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact) for * all the elements in the target array. * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the array of Strings to be capitalized. * If non-String objects, toString() will be called. * * @return a String[] with the result of capitalizing * each element of the target. * * @since 1.1.2 * */ public String[] arrayCapitalizeWords(final Object[] target) { if (target == null) { return null; } final String[] result = new String[target.length]; for (int i = 0; i < target.length; i++) { result[i] = capitalizeWords(target[i]); } return result; }
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact) * for all the elements in the target set. * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the set of Strings to be capitalized. * If non-String objects, toString() will be called. * * @return a Set with the result of capitalizing each element of the target. * * @since 1.1.2 * */ public Set<String> setCapitalizeWords(final Set<?> target) { if (target == null) { return null; } final Set<String> result = new LinkedHashSet<String>(target.size() + 2); for (final Object element : target) { result.add(capitalizeWords(element)); } return result; }
result.add(capitalizeWords(element, delimiters));
result.add(capitalizeWords(element, delimiters));
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact) for * all the elements in the target list. * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the list of Strings to be capitalized. * If non-String objects, toString() will be called. * * @return a List with the result of capitalizing * each element of the target. * * @since 1.1.2 * */ public List<String> listCapitalizeWords(final List<?> target) { if (target == null) { return null; } final List<String> result = new ArrayList<String>(target.size() + 2); for (final Object element : target) { result.add(capitalizeWords(element)); } return result; }
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact) for * all the elements in the target array. * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the array of Strings to be capitalized. * If non-String objects, toString() will be called. * * @return a String[] with the result of capitalizing * each element of the target. * * @since 1.1.2 * */ public String[] arrayCapitalizeWords(final Object[] target) { if (target == null) { return null; } final String[] result = new String[target.length]; for (int i = 0; i < target.length; i++) { result[i] = capitalizeWords(target[i]); } return result; }
result[i] = capitalizeWords(target[i], delimiters);
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact) * for all the elements in the target set. * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the set of Strings to be capitalized. * If non-String objects, toString() will be called. * * @return a Set with the result of capitalizing each element of the target. * * @since 1.1.2 * */ public Set<String> setCapitalizeWords(final Set<?> target) { if (target == null) { return null; } final Set<String> result = new LinkedHashSet<String>(target.size() + 2); for (final Object element : target) { result.add(capitalizeWords(element)); } return result; }
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact) for * all the elements in the target list. * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the list of Strings to be capitalized. * If non-String objects, toString() will be called. * * @return a List with the result of capitalizing * each element of the target. * * @since 1.1.2 * */ public List<String> listCapitalizeWords(final List<?> target) { if (target == null) { return null; } final List<String> result = new ArrayList<String>(target.size() + 2); for (final Object element : target) { result.add(capitalizeWords(element)); } return result; }
result.add(capitalizeWords(element, delimiters));
result.add(capitalizeWords(element, delimiters));