Java 自定义方法 - BASE:修订间差异
跳到导航
跳到搜索
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第9行: | 第9行: | ||
|1 | |1 | ||
|isnull | |isnull | ||
| | |(null, "", [], {}) = true | ||
| | | | ||
|- | |- | ||
|2 | |2 | ||
|log, logerror | |log, logerror, logwarn | ||
| | |log | ||
| | | | ||
|- | |- | ||
|3 | |3 | ||
|dt | |dt | ||
| | |date, time | ||
| | | | ||
|- | |- | ||
|4 | |4 | ||
|hash, md5 | |hash, md5 | ||
|sha, sha-256, md5 | |sha, sha-256, md5, etc | ||
| | | | ||
|- | |- | ||
第34行: | 第34行: | ||
|6 | |6 | ||
|des, udes | |des, udes | ||
|DES | |DES crypt | ||
| | | | ||
|- | |- | ||
|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 | ||
| | |||
|- | |||
|12 | |||
|rep | |||
|replace string from map | |||
| | | | ||
|- | |- | ||
| | |11 | ||
| | |trim | ||
|remove substring | |remove substring, left & right | ||
| | |||
|- | |||
|13 | |||
|at | |||
|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