跳过导航链接
A B C D E F G H I J L M N P R S T U W 

A

add(float, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
add(float, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
add(double, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
add(double, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
add(Double, Double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
add(Number, Number) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
add(Number...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
add(String...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
add(BigDecimal...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
addDay(Date, long) - 类 中的静态方法com.github.oopstool.date.DateUtils
加/减天
addHour(Date, Long) - 类 中的静态方法com.github.oopstool.date.DateUtils
增加小时,减传负数
addMinutes(Date, Long) - 类 中的静态方法com.github.oopstool.date.DateUtils
为Date增加分钟,减传负数
addMonth(Date, long) - 类 中的静态方法com.github.oopstool.date.DateUtils
加/减月份
addMonth(long) - 类 中的静态方法com.github.oopstool.date.DateUtils
当前时间加/减月份
addWeek(long) - 类 中的静态方法com.github.oopstool.date.DateUtils
加/减星期
ALGORITHM__SHA256 - 类 中的静态变量com.github.oopstool.security.SecureUtils
 
ALGORITHM_MD5 - 类 中的静态变量com.github.oopstool.security.SecureUtils
 
ALGORITHM_SHA - 类 中的静态变量com.github.oopstool.security.SecureUtils
 
append(String, Object...) - 类 中的静态方法com.github.oopstool.string.StringUtils
拼接字符串。

B

buildCache(Integer, Integer, Integer, Integer, Integer, CacheLoader<K, V>, RemovalListener) - 类 中的静态方法com.github.oopstool.string.CacheUtils
buildCache expireAfterWrite是在指定项在一定时间内没有创建/覆盖时,会 移除该key,下次取的时候从loading中取 expireAfterAccess是指定项在一定时间内没有读写,会移除该key,下次取的时候从loading中取 refreshAfterWrite是在指定时间内没有被创建/覆盖,则指定时间过后,再次访问时,会去刷新该缓存,在新值没有到来之前,始终返回旧值 跟expire的区别是,指定时间过后,expire是remove该key,下次访问是同步去获取返回新值; 而refresh则是指定时间后,不会remove该key,下次访问会触发刷新,新值没有回来时返回旧值 设置的时候,可以让 expireAfterWrite > refreshAfterWrite, 这样每间隔refreshAfterWrite时间,当有访问的时候,进行refresh, 如果超过 expireAfterWrite 没有访问,则让缓存失效, 这样可以同时利用guava cache的刷新机制和过期机制

C

CacheUtils - com.github.oopstool.string中的类
基于guava缓存工具类
CacheUtils() - 类 的构造器com.github.oopstool.string.CacheUtils
 
checkArgument(boolean) - 类 中的静态方法com.github.oopstool.param.ParamUtils
根据传入的表达式判断结果是否为true,如果表达式为false抛出异常 例:
String a = "a"; ParamUtils.checkArgument(a.length()==2); returns throw IllegalArgumentException String a = "a"; ParamUtils.checkArgument(a.length()==1); 注意:该方法与 ParamUtils.checkArgument(boolean, Object) 的区别是:该方法仅仅抛出异常。
checkArgument(boolean, Object) - 类 中的静态方法com.github.oopstool.param.ParamUtils
根据传入的表达式判断结果是否为true,如果表达式为false抛出异常 例:
String a = "a"; ParamUtils.checkArgument(a.length()==2,"a的长度必须等于2"); returns throw IllegalArgumentException 注意:该方法与 ParamUtils.checkArgument(boolean) 的区别是:该方法在抛出异常的同时会返回自定义的错误信息。
checkArgument(boolean, String, Object...) - 类 中的静态方法com.github.oopstool.param.ParamUtils
根据传入的表达式判断结果是否为true,如果表达式为false抛出异常 例:
{@code Student student = new Student(1, "张三", 23, null); ParamUtils.checkArgument(!
checkNotNull(T) - 类 中的静态方法com.github.oopstool.param.ParamUtils
这个方法是快速判断null并抛出异常,通过方法ParamUtils.checkArgument(boolean)也可以完成此功能
Student student = null; ParamUtils.checkNotNull(student); returns throw NullPointerException
checkNotNull(T, Object) - 类 中的静态方法com.github.oopstool.param.ParamUtils
这个方法是快速判断null并抛出异常和自定义的异常信息,通过方法ParamUtils.checkArgument(boolean,Object)也可以完成此功能
Student student = null; ParamUtils.checkNotNull(student); returns throw NullPointerException
checkNotNull(T, String, Object...) - 类 中的静态方法com.github.oopstool.param.ParamUtils
这个方法是快速判断null并抛出异常支持异常信息模版,通过方法ParamUtils.checkNotNull(Object, String, Object...)也可以完成此功能
Student student = null; ParamUtils.checkNotNull(student,"%s不能为空","学生信息"); returns throw NullPointerException
CHINESE_DATE_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期格式:yyyy年MM月dd日
CHINESE_DATE_TIME_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期格式:yyyy年MM月dd日 HH时mm分ss秒
com.github.oopstool.date - 程序包 com.github.oopstool.date
 
com.github.oopstool.file - 程序包 com.github.oopstool.file
 
com.github.oopstool.json - 程序包 com.github.oopstool.json
 
com.github.oopstool.math - 程序包 com.github.oopstool.math
 
com.github.oopstool.param - 程序包 com.github.oopstool.param
 
com.github.oopstool.security - 程序包 com.github.oopstool.security
 
com.github.oopstool.string - 程序包 com.github.oopstool.string
 
convertSecTimeToString(Long, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
将Long类型的时间戳(秒级)转换成String 类型的时间格式
convertTimeToLong(String, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
将字符串转日期成Long类型的时间戳(毫秒级),格式为:pattern
convertTimeToSecLong(String, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
将字符串转日期成Long类型的时间戳(秒级),格式为:pattern
convertTimeToString(Long, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
将Long类型时间戳(毫秒)值转换成String时间格式
currentTimeMillis() - 类 中的静态方法com.github.oopstool.date.DateUtils
获取当前毫秒值

D

DatePattern - com.github.oopstool.date中的接口
日期格式常量
DateUtils - com.github.oopstool.date中的类
基于Java8的时间工具类
DateUtils() - 类 的构造器com.github.oopstool.date.DateUtils
 
div(float, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(float, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(double, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(double, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(Double, Double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(Number, Number) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(String, String) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(float, float, int) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(float, double, int) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(double, float, int) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(double, double, int) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(Double, Double, int) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(Number, Number, int) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(String, String, int) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(float, float, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(float, double, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(double, float, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(double, double, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(Double, Double, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(Number, Number, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(String, String, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(BigDecimal, BigDecimal, int, RoundingMode) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度

E

EMPTY - 类 中的静态变量com.github.oopstool.string.StringUtils
字符串常量:空字符串 ""
emptyToNull(String) - 类 中的静态方法com.github.oopstool.string.StringUtils
将空字符串""装换成null,如果不为""则返回自己本身:
例: StringUtils.emptyToNull("") return null StringUtils.emptyToNull("abc") return "abc"
encryptByMD5(String) - 类 中的静态方法com.github.oopstool.security.SecureUtils
根据MD5将字符串加密
encryptBySHA(String) - 类 中的静态方法com.github.oopstool.security.SecureUtils
根据SHA将字符串加密
encryptBySHA256(String) - 类 中的静态方法com.github.oopstool.security.SecureUtils
根据SHA256将字符串加密
encryptString(String, String) - 类 中的静态方法com.github.oopstool.security.SecureUtils
根据指定的算法将字符串加密
ExcelUtils - com.github.oopstool.file中的类
基于EasyExcel工具类
ExcelUtils() - 类 的构造器com.github.oopstool.file.ExcelUtils
 

F

format(Date, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
格式化日期为字符串 Date 类型过于久远,建议使用LocalDateTime
format(LocalDateTime, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
格式化日期为字符串
format(String, Object...) - 类 中的静态方法com.github.oopstool.string.StringUtils
格式化字符串。
formatSecTime(long) - 类 中的静态方法com.github.oopstool.date.DateUtils
根据秒 得到xx天xx时xx分xx秒

G

getCurrentDay(String) - 类 中的静态方法com.github.oopstool.date.DateUtils
获取当前日期字符串格式
getDatesBetween(LocalDate, LocalDate) - 类 中的静态方法com.github.oopstool.date.DateUtils
获得2个日期之间的所有的日期
getDatesNumBetween(LocalDate, LocalDate) - 类 中的静态方法com.github.oopstool.date.DateUtils
计算2个日期之间的天数
getDayOfMonth() - 类 中的静态方法com.github.oopstool.date.DateUtils
获取当前月的第几天
getEndTime() - 类 中的静态方法com.github.oopstool.date.DateUtils
 
getFirstDayOfCurrentYear(String) - 类 中的静态方法com.github.oopstool.date.DateUtils
查询当前年的第一天
getFirstDayOfMonth(Date, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
查询给定月份的第一天
getLastDayOfMonth(Date, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
查询当前月份的最后一天
getLastMonthFirstDayOfPreviousYear(String) - 类 中的静态方法com.github.oopstool.date.DateUtils
查询前一年最后一个月第一天
getLastMonthLastDayOfPreviousYear(String) - 类 中的静态方法com.github.oopstool.date.DateUtils
查询前一年最后一个月第一天
getMonth() - 类 中的静态方法com.github.oopstool.date.DateUtils
获取当前时间月份
getStartTime() - 类 中的静态方法com.github.oopstool.date.DateUtils
 
getToday() - 类 中的静态方法com.github.oopstool.date.DateUtils
获取今天
getYear() - 类 中的静态方法com.github.oopstool.date.DateUtils
获取当前时间年
getYesterday(String) - 类 中的静态方法com.github.oopstool.date.DateUtils
获取昨天-年、月、日
gsonToMap(String) - 类 中的静态方法com.github.oopstool.json.JsonUtils
 

H

HTTP_DATETIME_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
HTTP头中日期时间格式:EEE, dd MMM yyyy HH:mm:ss z

I

isBlank(String) - 类 中的静态方法com.github.oopstool.string.StringUtils
判断字符串是否为空,空的定义如下: 1:null 2:空字符串:"" 例: StringUtils.isBlank(null) // true StringUtils.isBlank("") // true StringUtils.isBlank("a") // false 注意:该方法与 StringUtils.isEmpty(String) 的区别是: 该方法会校验空白字符
isContain(String) - 类 中的静态方法com.github.oopstool.json.JsonUtils
 
isEmpty(String) - 类 中的静态方法com.github.oopstool.string.StringUtils
判断字符串是否为空,空的定义如下:
null 例: StringUtils.isEmpty(null) // true StringUtils.isEmpty("") // false StringUtils.isEmpty("a") // false 注意:该方法与 StringUtils.isBlank(String) 的区别是:该方法不校验空白字符。
ISO8601_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
ISO8601日期时间格式,精确到毫秒:yyyy-MM-dd HH:mm:ss,SSS

J

JDK_DATETIME_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
JDK中日期时间格式:EEE MMM dd HH:mm:ss zzz yyyy
jsonToBean(String, Class<T>) - 类 中的静态方法com.github.oopstool.json.JsonUtils
指定的Json反序列化为指定类的对象
jsonToBean(String, Type) - 类 中的静态方法com.github.oopstool.json.JsonUtils
指定的Json反序列化为指定类的对象
jsonToList(String, Class<T>) - 类 中的静态方法com.github.oopstool.json.JsonUtils
指定的Json反序列化为指定类对象的list集合
此方法适用于非通用对象,如果反序列化通用对象请使用JsonUtils.jsonToList(String, Type)
jsonToList(String, Type) - 类 中的静态方法com.github.oopstool.json.JsonUtils
指定的Json反序列化为指定类对象的list集合
此方法适用于指定的对象是泛型,如果反序列化非通用对象请使用JsonUtils.jsonToList(String, Class)
jsonToListMap(String) - 类 中的静态方法com.github.oopstool.json.JsonUtils
 
JsonUtils - com.github.oopstool.json中的类
基于Gson的json处理工具

L

loadCache(String) - 类 中的静态方法com.github.oopstool.string.CacheUtils
 
localDate2Date(LocalDate) - 类 中的静态方法com.github.oopstool.date.DateUtils
LocalDate类型转为Date
localDateTime2Date(LocalDateTime) - 类 中的静态方法com.github.oopstool.date.DateUtils
LocalDateTime类型转为Date

M

main(String[]) - 类 中的静态方法com.github.oopstool.security.SecureUtils
 
main(String[]) - 类 中的静态方法com.github.oopstool.string.CacheUtils
 
main1(String[]) - 类 中的静态方法com.github.oopstool.string.CacheUtils
 
mul(float, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
mul(float, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
mul(double, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
mul(double, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
mul(Double, Double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(Number, Number) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(Number...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(String, String) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
mul(String...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(BigDecimal...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0

N

NORM_DATE_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期格式:yyyy-MM-dd
NORM_DATETIME_MS_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期时间格式,精确到毫秒:yyyy-MM-dd HH:mm:ss.SSS
NORM_DATETIME_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期时间格式,精确到秒:yyyy-MM-dd HH:mm:ss
NORM_MONTH_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
年月格式:yyyy-MM
NORM_TIME_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准时间格式:HH:mm:ss
now() - 类 中的静态方法com.github.oopstool.date.SystemClock
 
nowDate() - 类 中的静态方法com.github.oopstool.date.SystemClock
 
NULL - 类 中的静态变量com.github.oopstool.string.StringUtils
字符串常量:"null"
注意:{@code "null" !
nullToEmpty(String) - 类 中的静态方法com.github.oopstool.string.StringUtils
将null装换成空串"",如果不为null则返回自己本身:
例: StringUtils.nullToEmpty(null) return "" StringUtils.nullToEmpty("abc") return "abc"
NumberUtil - com.github.oopstool.math中的类
数字工具类 来源hutools工具类
对于精确值计算应该使用 BigDecimal
JDK7中BigDecimal(double val)构造方法的结果有一定的不可预知性,例如: new BigDecimal(0.1) 表示的不是0.1而是0.1000000000000000055511151231257827021181583404541015625 这是因为0.1无法准确的表示为double。
NumberUtil() - 类 的构造器com.github.oopstool.math.NumberUtil
 

P

padEnd(String, int, char) - 类 中的静态方法com.github.oopstool.string.StringUtils
如果string的长度小于minLength,在string后添加padChar,直到字符串长度为minLength。
padStart(String, int, char) - 类 中的静态方法com.github.oopstool.string.StringUtils
如果string的长度小于minLength,在string前添加padChar,直到字符串长度为minLength。
ParamUtils - com.github.oopstool.param中的类
基于guava Preconditions参数校验相关工具
ParamUtils() - 类 的构造器com.github.oopstool.param.ParamUtils
 
parseByPattern(String, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
解析字符串日期为LocalDateTime类型 如需要date类型请调用localDateTime2Date转换
parseDateByPattern(String, String) - 类 中的静态方法com.github.oopstool.date.DateUtils
解析字符串日期为Date类型
PURE_DATE_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期格式:yyyyMMdd
PURE_DATETIME_MS_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期格式:yyyyMMddHHmmssSSS
PURE_DATETIME_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期格式:yyyyMMddHHmmss
PURE_TIME_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期格式:HHmmss

R

randomDouble() - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得随机数double值
randomDouble(double) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得指定范围内的随机数 [0,limit)
randomDouble(double, double) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得指定范围内的随机数
randomInt() - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得随机数int值
randomInt(int) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得指定范围内的随机数 [0,limit)
randomInt(int, int) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得指定范围内的随机数
randomLong() - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得随机数long值
randomLong(long) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得指定范围内的随机数 [0,limit)
randomLong(long, long) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得指定范围内的随机数
randomNumbers(int) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得一个只包含数字的字符串 数字样本"0123456789" 如果需要自定义数字样本请使用RandomUtils.randomString(String, int)
randomString(String, int) - 类 中的静态方法com.github.oopstool.security.RandomUtils
根据指定的字符串样本获得一个指定长度的随机字符串 如果baseString为空null或者""则返回""
randomString(int) - 类 中的静态方法com.github.oopstool.security.RandomUtils
获得一个随机的字符串(只包含数字和字母) 字符串样本为"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" 注意 如果自定义字符串样本请使用RandomUtils.randomString(String, int)}
RandomUtils - com.github.oopstool.security中的类
基于ThreadLocalRandom随机数生成工具
RandomUtils() - 类 的构造器com.github.oopstool.security.RandomUtils
 
read(File, Class<T>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
读取excel返回指定的对象集合 此方法只读取第一个sheet页。
read(File, Class<T>, int) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
读取指定的excel sheet页 返回指定的对象集合 此方法从第一行数据开始读取 例: ExcelUtils.read(new File("测试.xlsx"), Student1.class,1); returns List<Student1>
read(File, Class<T>, int, int) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
根据指定的sheet页从指定的行开始读 返回指定的对象集合 注意此方法要转成的对象的属性 应该按照表头属性书写,或者给属性设置 @ExcelProperty(index = 3) index。
read(InputStream, Class<T>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
读取excel返回指定的对象集合 此方法只读取第一个sheet页。
read(File, Class, ReadListener) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
根据自定义监听器读取excel 此方法只读取第一个sheet页。
readAllSheet(File, Class<T>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
读取excel 所有的sheet页 返回指定的对象集合 此方法从第一行数据开始读取 例: ExcelUtils.read(new File("测试.xlsx"), Student1.class,1); returns List<Student1>
readP12Cert() - 类 中的静态方法com.github.oopstool.security.SecureUtils
 
REGEX_NORM - 接口 中的静态变量com.github.oopstool.date.DatePattern
标准日期时间正则,每个字段支持单个数字或2个数字,包括: yyyy-MM-dd HH:mm:ss.SSS yyyy-MM-dd HH:mm:ss yyyy-MM-dd HH:mm yyyy-MM-dd

S

SecureUtils - com.github.oopstool.security中的类
安全加密工具类 1、摘要加密(digest),例如:MD5、SHA-1、SHA-256、HMAC等
2、对称加密(symmetric),例如:AES、DES等
3、非对称加密(asymmetric),例如:RSA、DSA等
SecureUtils() - 类 的构造器com.github.oopstool.security.SecureUtils
 
SIMPLE_MONTH_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
简单年月格式:yyyyMM
SPACE - 类 中的静态变量com.github.oopstool.string.StringUtils
字符串常量:空格符 " "
StringUtils - com.github.oopstool.string中的类
基于guava的字符串处理工具
StringUtils() - 类 的构造器com.github.oopstool.string.StringUtils
 
sub(float, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
sub(float, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
sub(double, float) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
sub(double, double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
sub(Double, Double) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
sub(Number, Number) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
sub(Number...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
sub(String...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
sub(BigDecimal...) - 类 中的静态方法com.github.oopstool.math.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
SystemClock - com.github.oopstool.date中的类
系统时钟
高并发场景下System.currentTimeMillis()的性能问题的优化 System.currentTimeMillis()的调用比new一个普通对象要耗时的多(具体耗时高出多少我还没测试过,有人说是100倍左右) System.currentTimeMillis()之所以慢是因为去跟系统打了一次交道 后台定时更新时钟,JVM退出时,线程自动回收 see: http://git.oschina.net/yu120/sequence
SystemClock(long) - 类 的构造器com.github.oopstool.date.SystemClock
构造

T

toJson(Object) - 类 中的静态方法com.github.oopstool.json.JsonUtils
将指定的对象序列化为其等效的Json表示形式

U

UTC_MS_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
UTC时间:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
UTC_MS_WITH_ZONE_OFFSET_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
UTC时间:yyyy-MM-dd'T'HH:mm:ssZ
UTC_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
UTC时间:yyyy-MM-dd'T'HH:mm:ss'Z'
UTC_SIMPLE_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
UTC时间:yyyy-MM-dd'T'HH:mm:ss
UTC_WITH_ZONE_OFFSET_PATTERN - 接口 中的静态变量com.github.oopstool.date.DatePattern
UTC时间:yyyy-MM-dd'T'HH:mm:ssZ

W

write(File, Class<T>, List<T>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
默认写入指定的文件的第一个sheet页
write(String, Class<T>, List<T>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
根据文件路径默认写入指定的文件的第一个sheet页
write(File, Class<T>, List<T>, String, Set<String>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
指定sheet页写如指定的列。
write(OutputStream, Class<T>, List<T>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
通过输入流写入该方法适合web端下载 例: public void download(HttpServletResponse response) throws IOException { response.setContentType("application/vnd.ms-excel"); response.setCharacterEncoding("utf-8"); // 这里URLEncoder.encode可以防止中文乱码 String fileName = URLEncoder.encode("测试", "UTF-8").replaceAll("\\+", "%20"); response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); ExcelUtils.write(response.getOutputStream(), DownloadData.class,data); }
writeByExcludeColumn(File, Class<T>, List<T>, Set<String>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
默认写入指定的文件的第一个sheet页忽略掉指定的列
writeByIncludeColumn(File, Class<T>, List<T>, Set<String>) - 类 中的静态方法com.github.oopstool.file.ExcelUtils
默认写入指定的文件的第一个sheet页,只写入指定的列
A B C D E F G H I J L M N P R S T U W 
跳过导航链接

Copyright © 2021. All rights reserved.