# StrMyUtil 说明

StrMyUtil.java 自定义字符串处理工具类,继承了cn.hutool.core.util.StrUtil
Author andy.ten@tom.com & xukaixing@hotmail.com

# API

# StrMyUtil Methods

方法名 说明 参数 示例
firChar2Lower 将首字母转换为小写,
返回类型:String
(String str)
firChar2Upper 将首字母转换为大写,
返回类型:String
(String str)
placeHolder 占位符 {} 按照顺序替换为参数,
返回类型:String
(String template, Object... params) StrMyUtil.placeHolder("test-{}", "demo");
toline 驼峰转为下划线格式,
返回类型:String
(String underlineString)
toHump 下划线字符串转为驼峰格式,
返回类型:String
(String inputString)
toHump 下划线字符串转为驼峰格式,
首字母是否大写
返回类型:String
(String inputString,
boolean firstCharacterUppercase)
getSetterMethodName 属性名返回bean的setter方法名,
返回类型:String
(String property)
getGetterMethodName 属性名返回bean的getter方法名,
返回类型:String
(String property)
updateResult 列表更新数据 (searchData, result, rownums) this.$crud.updateResult
(this.$parent.searchData, updateData,
this.rowData.rownums)
removeResult 列表删除数据 (searchData, index) this.$crud.removeResult
(this.searchData, index);
setEditValue 根据数据设置表单内容 (formList, rowdata) this.$crud.setEditValue
(this.editList, this.rowData);
resetEditValue 清空表单内容 (formList) this.$crud.resetEditValue
(this.editList);

# 版本

  • v1.0.1