groovy常用方法
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
字符串:
contains:是否包含指定字符串

endsWith:是否以什么结尾

size和length:统计字符串长度

toUpperCase和toLowerCase:大小写转换

列表:
split:分割文本

unique:列表去重

join:将列表中每个元素链接

字典:
基本操作:

添加和删除:

请我喝杯水


contains:是否包含指定字符串
endsWith:是否以什么结尾
size和length:统计字符串长度
toUpperCase和toLowerCase:大小写转换
split:分割文本
unique:列表去重
join:将列表中每个元素链接
基本操作:
添加和删除: