介绍
OpenKit 是我个人公司做项目的过程中总结出的一些比较好用的工具,其中包括,时间转化,时间计算,红包计算等,比较好用的静态方法,同时,还有一些第三方的接口的集成。
支付、推送、即时聊天,目前都是只针对APP端开发中的 service端 使用,web端的我们将在后期更新中添加
关注
静态工具
- MD5 加密工具
- 时间格式化 data 转 String
- 时间格式化 String 转 data
- 生成随机数
- 生成字母+数字 随机数
- 计算两个时间之间时间差
- 返回Map集合
- UUID(不带“-”的)
- 生成订单编号
- 去除指定字符
- 一个参数的非空验证
- 多个参数非空验证
- 将Javabean,Json,转换为Map
- 将JavaBean转换成JSONObject(通过Map中转)
- 将Map转换成Javabean
- 从最小值到最大值之间,随机取 N 个不重复的数字
- 随机红包(部分有红包,部分没有)
- 日期类型
第三方工具
introduce
OpenKit is my personal company in the process of doing projects summed up some of the more useful tools, including, time conversion, time calculation, red envelopes calculation, relatively easy to use static methods, at the same time. There is also integration of some third-party interfaces.
Payment, push, instant chat, currently are only for the service side of the APP side of development, we will add in a later update.
attention
static tools
- MD5 encryption tool
- time formatted data to String
- time formatted String to data
- generating random numbers
- generating alphanumeric random numbers
- calculating the time difference between two times
- returns the Map collection
- UUID(not "-")
- generate order number
- removal of specified characters
- Non-null validation of a parameter
- multiple parameter nonnull validation
- convert Java bean Jsonto Map
- convert JavaBean to JSON object (via Map transfer)
- convert Map to Javabean
- from the minimum to the maximum, randomly pick up N numbers that are not repeated
- Random red envelopes (some red envelopes, part not)
- date type
Third-party tools
- push
- instant chat
- text messages
- APP payments