public class AutoIncrementZerofillUtils extends Object
Constructor and Description |
---|
AutoIncrementZerofillUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
autoDecr(String str)
字符串尾部值自动递减
|
static String |
autoIncrement(String str)
字符串尾部值自动递增
|
static String |
getInitValue(int length)
获得初始化值,自动填充零
|
public static String getInitValue(int length)
length
- 初始化长度public static String autoIncrement(String str)
str
- 尾部值是 Integer 类型ParamException
- 如:("999", "str999")Copyright © 2022 Pivotal Software, Inc.. All rights reserved.