/** * <p> * Convert all the first letter of the words of target * to uppercase (title-case, in fact). * The default delimiter characters between the words * are the whitespace characters * (see Characters.IsWhiteSpace method in the Java doc). * </p> * * @param target the String to be capitalized. If non-String object, toString() * will be called. * @return String the result of capitalizing the target. * @since 1.1.2 */ public static String capitalizeWords(final Object target) { return capitalizeWords(target, null); }
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact). * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the String to be capitalized. * If non-String object, toString() will be called. * * @return String the result of capitalizing the target. * * @since 1.1.2 * */ public String capitalizeWords(final Object target) { if (target == null) { return null; } return StringUtils.capitalizeWords(target); }
/** * <p> * Convert the first letter of each words of target to uppercase * (title-case, in fact), using the specified delimiter chars for determining * word ends/starts. * </p> * * @param target the String to be capitalized. * If non-String object, toString() will be called. * @param delimiters the delimiters of the words. * If non-String object, toString() will be called. * * @return String the result of capitalizing the target. * * @since 1.1.2 * */ public String capitalizeWords(final Object target, final Object delimiters) { if (target == null) { return null; } return StringUtils.capitalizeWords(target, delimiters); }
/** * <p> * Convert all the first letter of the words of target * to uppercase (title-case, in fact). * The default delimiter characters between the words * are the whitespace characters * (see Characters.IsWhiteSpace method in the Java doc). * </p> * * @param target the String to be capitalized. If non-String object, toString() * will be called. * @return String the result of capitalizing the target. * @since 1.1.2 */ public static String capitalizeWords(final Object target) { return capitalizeWords(target, null); }
/** * <p> * Convert the first letter of each words of target * to uppercase (title-case, in fact). * The default delimiter characters between the words are * the whitespace characters * (see Characters.IsWhiteSpace method in the Java documentation). * </p> * * @param target the String to be capitalized. * If non-String object, toString() will be called. * * @return String the result of capitalizing the target. * * @since 1.1.2 * */ public String capitalizeWords(final Object target) { return StringUtils.capitalizeWords(target); }
/** * <p> * Convert the first letter of each words of target to uppercase * (title-case, in fact), using the specified delimiter chars for determining * word ends/starts. * </p> * * @param target the String to be capitalized. * If non-String object, toString() will be called. * @param delimiters the delimiters of the words. * If non-String object, toString() will be called. * * @return String the result of capitalizing the target. * * @since 1.1.2 * */ public String capitalizeWords(final Object target, final Object delimiters) { return StringUtils.capitalizeWords(target, delimiters); }