/** * Limit the string to a certain number of characters, adding "..." if it was truncated. * * @param value * The string to limit. * @param the * length to limit to (as an Integer). * @return The limited string. */ public static String limit(String value, Integer length) { return limit(value, length.intValue()); } // limit