- set(Class<?>, Object, String, Object) - 类 中的静态方法cn.vonce.common.utils.ReflectAsmUtil
-
- setCode(Integer) - 类 中的方法cn.vonce.common.bean.RS
-
- setData(T) - 类 中的方法cn.vonce.common.bean.RS
-
- setData(T) - 类 中的方法cn.vonce.common.bean.SResult
-
- setFieldValue(Object, String, String) - 类 中的静态方法cn.vonce.common.utils.ReflectUtil
-
利用反射设置指定对象的指定属性为指定的值
- setMessage(String) - 类 中的方法cn.vonce.common.utils.IdCardUtil.Result
-
- setMsg(String) - 类 中的方法cn.vonce.common.bean.RS
-
- setMsg(String) - 类 中的方法cn.vonce.common.bean.SResult
-
- setOk(boolean) - 类 中的方法cn.vonce.common.utils.IdCardUtil.Result
-
- setPagenum(Integer) - 类 中的方法cn.vonce.common.bean.PagingRS
-
- setPagesize(Integer) - 类 中的方法cn.vonce.common.bean.PagingRS
-
- setRequest(HttpServletRequest) - 类 中的方法cn.vonce.common.base.BaseController
-
- setResponse(HttpServletResponse) - 类 中的方法cn.vonce.common.base.BaseController
-
- setResultCode(ResultCode) - 类 中的方法cn.vonce.common.bean.SResult
-
- setTimestamp(String) - 类 中的方法cn.vonce.common.bean.PagingRS
-
- setTotalPage(Integer) - 类 中的方法cn.vonce.common.bean.PagingRS
-
- setTotalRecords(Integer) - 类 中的方法cn.vonce.common.bean.PagingRS
-
- sha1(String) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-1 as hex string (all lower-case).
- sha1(byte[]) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-1 as hex string (all lower-case).
- SHA1 - cn.vonce.common.utils中的类
-
Title:SHA1
Description:
Copyright:Copyright (c) 2016
Company:creditease
- SHA1() - 类 的构造器cn.vonce.common.utils.SHA1
-
- sha1AsBytes(String) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
- sha1AsBytes(byte[]) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-1 as bytes.
- sha256(String) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-256 as hex string (all lower-case).
- sha256(byte[]) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-256 as hex string (all lower-case).
- sha256AsBytes(String) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-256 as hex string (all lower-case).
- sha256AsBytes(byte[]) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-256 as bytes.
- sha512AsBytes(byte[]) - 类 中的静态方法cn.vonce.common.utils.HashUtil
-
Generate SHA-512 as bytes.
- sign(byte[], String) - 类 中的静态方法cn.vonce.common.utils.RSAUtil
-
用私钥对信息生成数字签名
- SIGNATURE_ALGORITHM - 类 中的静态变量cn.vonce.common.utils.RSAUtil
-
签名算法
- SnowflakeId16 - cn.vonce.common.utils中的类
-
廖雪峰的 53 bits unique id:
53bitID由32bit秒级时间戳+16bit自增+5bit机器标识组成,累积32台机器,每秒可以生成6.5万个序列号
|--------|--------|--------|--------|--------|--------|--------|--------|
|00000000|00011111|11111111|11111111|11111111|11111111|11111111|11111111|
|--------|---xxxxx|xxxxxxxx|xxxxxxxx|xxxxxxxx|xxx-----|--------|--------|
|--------|--------|--------|--------|--------|---xxxxx|xxxxxxxx|xxx-----|
|--------|--------|--------|--------|--------|--------|--------|---xxxxx|
Maximum ID = 11111_11111111_11111111_11111111_11111111_11111111_11111111
Maximum TS = 11111_11111111_11111111_11111111_111
Maximum NT = ----- -------- -------- -------- ---11111_11111111_111 = 65535
Maximum SH = ----- -------- -------- -------- -------- -------- ---11111 = 31
It can generate 64k unique id per IP and up to 2106-02-07T06:28:15Z.
- SnowflakeId16() - 类 的构造器cn.vonce.common.utils.SnowflakeId16
-
- SnowflakeId18 - cn.vonce.common.utils中的类
-
基于Twitter的Snowflake算法实现分布式高效有序ID生产黑科技(sequence)——升级版Snowflake
SnowFlake的结构如下(每部分用-分开):
0 - 0000000000 0000000000 0000000000 0000000000 0 - 00000 - 00000 - 000000000000
1位标识,由于long基本类型在Java中是带符号的,最高位是符号位,正数是0,负数是1,所以id一般是正数,最高位是0
41位时间截(毫秒级),注意,41位时间截不是存储当前时间的时间截,而是存储时间截的差值(当前时间截 - 开始时间截)
得到的值),这里的的开始时间截,一般是我们的id生成器开始使用的时间,由我们程序来指定的(如下START_TIME属性)。
- SnowflakeId18(long) - 类 的构造器cn.vonce.common.utils.SnowflakeId18
-
- SnowflakeId18(long, boolean, boolean) - 类 的构造器cn.vonce.common.utils.SnowflakeId18
-
- SnowflakeId18(long, long, boolean, long, boolean) - 类 的构造器cn.vonce.common.utils.SnowflakeId18
-
基于Snowflake创建分布式ID生成器
- SResult<T> - cn.vonce.common.bean中的类
-
业务方法 执行返回结果(Service Result)
- SResult() - 类 的构造器cn.vonce.common.bean.SResult
-
- stringIdToLongId(String) - 类 中的静态方法cn.vonce.common.utils.SnowflakeId16
-
- stringToDate(String) - 类 中的静态方法cn.vonce.common.utils.DateUtil
-
将字符串日期转为日期对象(默认格式:yyyy-MM-dd HH:mm:ss)
- stringToDate(String, String) - 类 中的静态方法cn.vonce.common.utils.DateUtil
-
将字符串日期转为日期对象
- StringUtil - cn.vonce.common.utils中的类
-
字符串工具类
- StringUtil() - 类 的构造器cn.vonce.common.utils.StringUtil
-
- successHint(String) - 类 中的方法cn.vonce.common.base.BaseController
-
返回成功状态
- successHint(String, Object) - 类 中的方法cn.vonce.common.base.BaseController
-
返回成功状态及数据
- successHintJSONP(String) - 类 中的方法cn.vonce.common.base.BaseController
-
返回成功状态(可返回JSONP)
- successHintJSONP(String, Object) - 类 中的方法cn.vonce.common.base.BaseController
-
返回成功状态及数据(可返回JSONP)
- SystemClock - cn.vonce.common.utils中的枚举
-
System Clock
利用ScheduledExecutorService实现高并发场景下System.curentTimeMillis()的性能问题的优化.