类 RandomString

java.lang.Object
function.xyz.migoo.RandomString
所有已实现的接口:
Function

public class RandomString extends Object implements Function
作者:
xiaomi
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    execute(Args args)
    获取随机字符串,支持三个参数,且三个参数都允许为空 参数: length: 返回的随机字符串长度,允许为空,默认:10 string: 基础字符串,允许为空,如果传了该参数,则从该参数中获取字符作为种子生成随机字符串 upper: 是否将生成的字符串转为大写,允许为空,默认:false

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • RandomString

      public RandomString()
  • 方法详细资料

    • execute

      public String execute(Args args)
      获取随机字符串,支持三个参数,且三个参数都允许为空 参数: length: 返回的随机字符串长度,允许为空,默认:10 string: 基础字符串,允许为空,如果传了该参数,则从该参数中获取字符作为种子生成随机字符串 upper: 是否将生成的字符串转为大写,允许为空,默认:false
      指定者:
      execute 在接口中 Function
      参数:
      args - 扩展函数参数
      返回:
      生成的数据