-
-
方法概要
获取随机字符串,支持三个参数,且三个参数都允许为空
参数:
length: 返回的随机字符串长度,允许为空,默认:10
string: 基础字符串,允许为空,如果传了该参数,则从该参数中获取字符作为种子生成随机字符串
upper: 是否将生成的字符串转为大写,允许为空,默认:false
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
RandomString
public RandomString()
-
方法详细资料
-
execute
获取随机字符串,支持三个参数,且三个参数都允许为空
参数:
length: 返回的随机字符串长度,允许为空,默认:10
string: 基础字符串,允许为空,如果传了该参数,则从该参数中获取字符作为种子生成随机字符串
upper: 是否将生成的字符串转为大写,允许为空,默认:false
- 指定者:
execute 在接口中 Function
- 参数:
args - 扩展函数参数
- 返回:
- 生成的数据