/** * Cuts the string at the end if it's longer than maxLength and appends "..." to it. The length of the resulting * string including "..." is always less or equal to the given maxLength. It's valid to pass a null text; in this * case null is returned. */ public static String ellipsize(String text, int maxLength) { return ellipsize(text, maxLength, "..."); }
/** * Cuts the string at the end if it's longer than maxLength and appends "..." to it. The length of the resulting * string including "..." is always less or equal to the given maxLength. It's valid to pass a null text; in this * case null is returned. */ public static String ellipsize(String text, int maxLength) { return ellipsize(text, maxLength, "..."); }
/** * Cuts the string at the end if it's longer than maxLength and appends "..." to it. The length of the resulting * string including "..." is always less or equal to the given maxLength. It's valid to pass a null text; in this * case null is returned. */ public static String ellipsize(String text, int maxLength) { return ellipsize(text, maxLength, "..."); }
/** * Cuts the string at the end if it's longer than maxLength and appends "..." to it. The length of the resulting * string including "..." is always less or equal to the given maxLength. It's valid to pass a null text; in this * case null is returned. */ public static String ellipsize(String text, int maxLength) { return ellipsize(text, maxLength, "..."); }