Java 自定义方法 - BASE:修订间差异
跳到导航
跳到搜索
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第24行: | 第24行: | ||
|4 | |4 | ||
|hash, md5 | |hash, md5 | ||
|sha, sha-256, md5, etc | |sha, sha-256, md5, etc | ||
| | | | ||
|- | |- | ||
第38行: | 第38行: | ||
|- | |- | ||
|7 | |7 | ||
| | |str2list | ||
|String to | |String to List | ||
| | | | ||
|- | |- | ||
|8 | |8 | ||
|str2map | |||
|String to Map | |||
| | |||
|- | |||
|9 | |||
|list2map | |list2map | ||
|List to | |List to Map | ||
| | | | ||
|- | |- | ||
| | |10 | ||
|reverse | |reverse | ||
|reverse string, abc -> cba | |reverse string, abc -> cba | ||
| | | | ||
|- | |- | ||
| | |12 | ||
|rep | |||
|replace string from map | |||
| | |||
|- | |||
|11 | |||
|trim | |trim | ||
|remove substring, left & right | |remove substring, left & right | ||
| | | | ||
|- | |- | ||
| | |13 | ||
|at | |at | ||
|CAS, (1, -1, n) | |CAS, (1, -1, n) | ||
| | | | ||
|} | |} | ||
===GIT=== | |||
https://github.com/ldscfe/devudefj2/blob/main/src/main/com/udf/BASE.java | |||
[[分类:Develop]] | [[分类:Develop]] | ||
[[分类:Java]] | [[分类:Java]] |
2024年10月30日 (三) 16:06的最新版本
Java 自定义函数 - BASE
No | Method | Explain | Example |
---|---|---|---|
1 | isnull | (null, "", [], {}) = true | |
2 | log, logerror, logwarn | log | |
3 | dt | date, time | |
4 | hash, md5 | sha, sha-256, md5, etc | |
5 | base64, ubase64 | BASE64 | |
6 | des, udes | DES crypt | |
7 | str2list | String to List | |
8 | str2map | String to Map | |
9 | list2map | List to Map | |
10 | reverse | reverse string, abc -> cba | |
12 | rep | replace string from map | |
11 | trim | remove substring, left & right | |
13 | at | CAS, (1, -1, n) |
GIT
https://github.com/ldscfe/devudefj2/blob/main/src/main/com/udf/BASE.java