Parameters: str - the String to check, may be null maxWidth - maximum length of result String, must be at least 4 Returns: abbreviated String, null if null String input Throws: IllegalArgumentException - if the width is too small Since: 2.0 StringUtils.abbreviate("abcdefg", 3) = IllegalArgumentException StringUtils.abbreviate("abcdefg", 4) = "a." StringUtils.abbreviate("abcdefg", 8) = "abcdefg" StringUtils.abbreviate("abcdefg", 7) = "abcdefg" StringUtils.abbreviate("abcdefg", 6) = "abc."
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |