public class StringTool extends Object
Constructor and Description |
---|
StringTool() |
Modifier and Type | Method and Description |
---|---|
String |
truncateMiddle(String string,
int maxLength,
String ellipses)
To cut out middle part of a String.
|
public String truncateMiddle(String string, int maxLength, String ellipses)
string
- the string to truncatemaxLength
- the max length of a stringellipses
- the replacement in case of cutting the stringCopyright © 2019 Communote team. All rights reserved.