Java 自定义方法 - BASE:修订间差异
跳到导航
跳到搜索
(创建页面,内容为“Java 自定义函数 - BASE {| class="wikitable" |+ !No !Method !Explain !Example |- |1 |logger |日志 | |- |2 |dt |日期、时间 | |- |3 |hash, md5 |sha, sha-256, md5 等 hash 函数 | |- |4 |base64, ubase64 |BASE64 | |- |5 |des, udes |DES 加密 | |- |6 |str2map |String to MAP | |- |7 |list2map |List to MAP | |- |8 |reverse |反转字符串 | |- |9 |trim, rtrim, trim |remove substring | |} package com.udf.base; /* ---------------------------------…”) |
无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第8行: | 第8行: | ||
|- | |- | ||
|1 | |1 | ||
| | |isnull | ||
| | |(null, "", [], {}) = true | ||
| | | | ||
|- | |- | ||
|2 | |2 | ||
|log, logerror, logwarn | |||
|log | |||
| | |||
|- | |||
|3 | |||
|dt | |dt | ||
| | |date, time | ||
| | | | ||
|- | |- | ||
| | |4 | ||
|hash, md5 | |hash, md5 | ||
|sha, sha-256, md5 | |sha, sha-256, md5, etc | ||
| | | | ||
|- | |- | ||
| | |5 | ||
|base64, ubase64 | |base64, ubase64 | ||
|BASE64 | |BASE64 | ||
| | | | ||
|- | |- | ||
| | |6 | ||
|des, udes | |des, udes | ||
|DES | |DES crypt | ||
| | |||
|- | |||
|7 | |||
|str2list | |||
|String to List | |||
| | | | ||
|- | |- | ||
| | |8 | ||
|str2map | |str2map | ||
|String to | |String to Map | ||
| | | | ||
|- | |- | ||
| | |9 | ||
|list2map | |list2map | ||
|List to | |List to Map | ||
| | | | ||
|- | |- | ||
| | |10 | ||
|reverse | |reverse | ||
| | |reverse string, abc -> cba | ||
| | | | ||
|- | |- | ||
| | |12 | ||
| | |rep | ||
|remove substring | |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 | |||
[[分类: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