字符串转list(从右到左截取) @param str 字符串 @param length 每次截取长度(List中的字符串长度) @return
(String str, Integer length)
| 394 | * @return |
| 395 | */ |
| 396 | public static List<String> getStringToList(String str, Integer length) { |
| 397 | List<String> list = new ArrayList<>(); |
| 398 | while (str.length() > length) { |
| 399 | list.add(str); |
| 400 | str = str.substring(0, str.length() - 2); |
| 401 | } |
| 402 | list.add(str); |
| 403 | return list; |
| 404 | } |
| 405 | |
| 406 | // /** |
| 407 | // * 获取枚举 FieldName注解值 |
nothing calls this directly
no outgoing calls
no test coverage detected