- changeCharset(String, String) - 类 中的静态方法org.openingo.jdkits.coding.EncodingKit
-
字符串编码转换的实现方法
- changeCharset(String, String, String) - 类 中的静态方法org.openingo.jdkits.coding.EncodingKit
-
字符串编码转换的实现方法
- CHARSET_UTF8 - 类 中的静态变量org.openingo.jdkits.db.DDLKit
-
- CHARSET_UTF8MB4 - 类 中的静态变量org.openingo.jdkits.db.DDLKit
-
- ClassKit - org.openingo.jdkits.reflect中的类
-
ClassKit
- clone(T) - 类 中的方法org.openingo.jdkits.lang.ObjectKit
-
Clone 一个对象
- clone(T) - 类 中的静态方法org.openingo.jdkits.lang.SerializationKit
-
Deep clone an Object using serialization.
- COLON - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- Column(String, String, String, int, String) - 类 的构造器org.openingo.jdkits.db.DDLKit.Column
-
初始化Column
- Column(String, String, boolean, String, int, Object, boolean, boolean) - 类 的构造器org.openingo.jdkits.db.DDLKit.Column
-
初始化Column
- columnDDL() - 类 中的方法org.openingo.jdkits.db.DDLKit.Column
-
column DDL
- COMMA - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- compress(byte[], boolean) - 类 中的静态方法org.openingo.jdkits.coding.CompressKit
-
- compress(String) - 类 中的静态方法org.openingo.jdkits.coding.CompressKit
-
使用GZIP压缩
- compress(byte[]) - 类 中的静态方法org.openingo.jdkits.coding.CompressKit
-
使用GZIP压缩
- compress(String, String) - 类 中的静态方法org.openingo.jdkits.coding.CompressKit
-
使用密码压缩
- compress(byte[], String) - 类 中的静态方法org.openingo.jdkits.coding.CompressKit
-
使用密码压缩
- CompressKit - org.openingo.jdkits.coding中的类
-
Compress Kit
- Config() - 类 的构造器org.openingo.jdkits.http.RespData.Config
-
- contains(String) - 类 中的方法org.openingo.jdkits.lang.JavaKeywordKit
-
- copy(File, File) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given input File to the given output File.
- copy(byte[], File) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given byte array to the given output File.
- copy(InputStream, OutputStream) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given InputStream to the given OutputStream.
- copy(byte[], OutputStream) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given byte array to the given OutputStream.
- copy(Reader, Writer) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given Reader to the given Writer.
- copy(String, Writer) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given String to the given output Writer.
- copy(byte[], OutputStream) - 类 中的静态方法org.openingo.jdkits.stream.StreamKit
-
Copy the contents of the given byte array to the given OutputStream.
- copy(String, Charset, OutputStream) - 类 中的静态方法org.openingo.jdkits.stream.StreamKit
-
Copy the contents of the given String to the given output OutputStream.
- copy(InputStream, OutputStream) - 类 中的静态方法org.openingo.jdkits.stream.StreamKit
-
Copy the contents of the given InputStream to the given OutputStream.
- copyRange(InputStream, OutputStream, long, long) - 类 中的静态方法org.openingo.jdkits.stream.StreamKit
-
Copy a range of content of the given InputStream to the given OutputStream.
- copyRecursively(File, File) - 类 中的静态方法org.openingo.jdkits.file.FileSystemKit
-
Recursively copy the contents of the src file/directory
to the dest file/directory.
- copyRecursively(Path, Path) - 类 中的静态方法org.openingo.jdkits.file.FileSystemKit
-
Recursively copy the contents of the src file/directory
to the dest file/directory.
- copyToByteArray(File) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given input File into a new byte array.
- copyToByteArray(InputStream) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given InputStream into a new byte array.
- copyToByteArray(InputStream) - 类 中的静态方法org.openingo.jdkits.stream.StreamKit
-
Copy the contents of the given InputStream into a new byte array.
- copyToString(Reader) - 类 中的静态方法org.openingo.jdkits.file.FileCopyKit
-
Copy the contents of the given Reader into a String.
- copyToString(InputStream, Charset) - 类 中的静态方法org.openingo.jdkits.stream.StreamKit
-
Copy the contents of the given InputStream into a String.
- createColumn(String, String, String, int, Object, boolean, boolean) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个Column
- createColumn(String, String, boolean, String, int, Object, boolean, boolean) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个Unsigned Column
- createColumn(String, String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个Column
- createDirectories(String) - 类 中的静态方法org.openingo.jdkits.file.FileKit
-
创建多级目录
- createIntColumn(String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个Int Column
- createPrimaryKey(String, String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
生成Primary Key
- createSignedIntColumn(String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个 Signed Int Column
- createSignedTinyIntColumn(String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个 Signed TinyInt Column
- createTable(String, String) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个table,没有任何列
- createTable(String, String, List<DDLKit.Column>) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个table
- createTextColumn(String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个Text Column
- createTinyIntColumn(String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个TinyInt Column
- createTinyTextColumn(String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个TinyText Column
- createUniqueKey(String, String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
生成 unique Key
- createVarcharColumn(String, String, int, Object) - 类 中的静态方法org.openingo.jdkits.db.DDLKit
-
创建一个Varchar Column
- CRLF - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- failure(String) - 类 中的静态方法org.openingo.jdkits.http.RespData
-
Failure Response
- FAILURE_SC - 类 中的静态变量org.openingo.jdkits.http.RespData.Config
-
failure status code, default is 'failure'.
- FALSE - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- FastJsonKit - org.openingo.jdkits.json中的类
-
FastJson工具 FastJsonKit
- FileCopyKit - org.openingo.jdkits.file中的类
-
Copy from spring
Simple utility methods for file and stream copying.
- FileKit - org.openingo.jdkits.file中的类
-
文件工具 FileKit
- FileSystemKit - org.openingo.jdkits.file中的类
-
Copy from spring
Utility methods for working with the file system.
- firstCharToLowerCase(String) - 类 中的静态方法org.openingo.jdkits.lang.StrKit
-
首字母变小写
- firstCharToUpperCase(String) - 类 中的静态方法org.openingo.jdkits.lang.StrKit
-
首字母变大写
- fnv1a64(String) - 类 中的静态方法org.openingo.jdkits.hash.HashKit
-
- FNV_OFFSET_BASIS_64 - 类 中的静态变量org.openingo.jdkits.hash.HashKit
-
- FNV_PRIME_64 - 类 中的静态变量org.openingo.jdkits.hash.HashKit
-
- formatDate(int, Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间
- formatDateToFull(Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间为DateFormat.FULL风格的String => 2015年5月4日 星期一
- formatDateToFULL12HRStyle(String, Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间为Full12HR,使用spacer间隔。
- formatDateToFULL24HRStyle(String, Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间为Full24HR,使用spacer间隔。
- formatDateToHRStyle(DateTimeKit.HR, Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化日期为时间格式
- formatDateToMedium(Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间为DateFormat.MEDIUM风格的String => 2015-5-4
- formatDateToShort(Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间为DateFormat.SHORT风格的String => 15-5-4
- formatDateToStyle(String, Date) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间
- formatNow(int) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间
- formatNowToFull() - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化当前时间为DateFormat.FULL风格的String => 2015年5月4日 星期一
- formatNowToFULL12HRStyle(String) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化当前时间为Full12HR,使用spacer间隔。
- formatNowToFULL24HRStyle(String) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化当前时间为Full24HR,使用spacer间隔。
- formatNowToHRStyle(DateTimeKit.HR) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化当前日期为时间格式
- formatNowToMedium() - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化当前时间为DateFormat.MEDIUM风格的String => 2015-5-4
- formatNowToShort() - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化当前时间为DateFormat.SHORT风格的String => 15-5-4
- formatNowToStyle(String) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间
- formatUnixTime(String, BigInteger) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间戳为制定的style
- formatUnixTimeTo12HRStyle(BigInteger) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间戳为制定的12hour style
- formatUnixTimeTo24HRStyle(BigInteger) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间戳为制定的24hour style
- formatUnixTimeToDate(BigInteger) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
BigInteger 转Date
- formatUnixTimeToShort12HRStyle(BigInteger) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间戳为制定的short 12hour style
- formatUnixTimeToShort24HRStyle(BigInteger) - 类 中的静态方法org.openingo.jdkits.date.DateTimeKit
-
格式化时间戳为制定的short 24hour style
- FRIENDLY_FAILURE_MESSAGE - 类 中的静态变量org.openingo.jdkits.http.RespData.Config
-
friendly failure message, default "The system is temporarily unavailable"
- FULL_DATE_12HR_STYLE - 类 中的静态变量org.openingo.jdkits.date.DateTimeKit
-
yyyy-MM-dd hh:mm:ss
- FULL_DATE_24HR_STYLE - 类 中的静态变量org.openingo.jdkits.date.DateTimeKit
-
yyyy-MM-dd HH:mm:ss
- SC_KEY - 类 中的静态变量org.openingo.jdkits.http.RespData.Config
-
Status code key, default 'sc'
- selector(ObjTypeKit.TypeSelector) - 类 中的静态方法org.openingo.jdkits.lang.ObjTypeKit
-
- SEMICOLON - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- Sequence - org.openingo.jdkits.idfactory中的类
-
- Sequence() - 类 的构造器org.openingo.jdkits.idfactory.Sequence
-
- Sequence(long, long) - 类 的构造器org.openingo.jdkits.idfactory.Sequence
-
有参构造器
- SerializationKit - org.openingo.jdkits.lang中的类
-
copy from spring-core#org.springframework.util.SerializationKit version 5.2.2
- serialize(Object) - 类 中的静态方法org.openingo.jdkits.lang.SerializationKit
-
Serialize the given object to a byte array.
- set(T) - 类 中的方法org.openingo.jdkits.thread.ThreadLocalKit
-
set to ThreadLocal
if the t is null will remove before set.
- setCharset(String) - 类 中的方法org.openingo.jdkits.db.DDLKit.Table
-
设置编码
- setCharSet(String) - 类 中的静态方法org.openingo.jdkits.http.HttpKit
-
- setGenerateId(Boolean) - 类 中的方法org.openingo.jdkits.db.DDLKit.Table
-
是否自动生成Id
- setPretty(Boolean) - 类 中的方法org.openingo.jdkits.db.DDLKit.Table
-
DDL Pretty
- sha1(String) - 类 中的静态方法org.openingo.jdkits.hash.HashKit
-
- sha256(String) - 类 中的静态方法org.openingo.jdkits.hash.HashKit
-
- sha384(String) - 类 中的静态方法org.openingo.jdkits.hash.HashKit
-
- sha512(String) - 类 中的静态方法org.openingo.jdkits.hash.HashKit
-
- SINGLE_QUOTE - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- SLASH - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- slowEquals(byte[], byte[]) - 类 中的静态方法org.openingo.jdkits.hash.HashKit
-
- slowEquals(String, String) - 类 中的静态方法org.openingo.jdkits.lang.StrKit
-
- SM_KEY - 类 中的静态变量org.openingo.jdkits.http.RespData.Config
-
Status message key, default 'sm'
- SM_ONLY - 类 中的静态变量org.openingo.jdkits.http.RespData.Config
-
only contains status message
- SPACE - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- STAR - 接口 中的静态变量org.openingo.jdkits.lang.StringPoolKit
-
- StreamKit - org.openingo.jdkits.stream中的类
-
Copy from spring
Simple utility methods for dealing with streams.
- StringPoolKit - org.openingo.jdkits.lang中的接口
-
Copy to jodd.util
Pool of String constants to prevent repeating of
hard-coded String literals in the code.
- StrKit - org.openingo.jdkits.lang中的类
-
字符串工具 StrKit
- success() - 类 中的静态方法org.openingo.jdkits.http.RespData
-
Success Response
- success(Object) - 类 中的静态方法org.openingo.jdkits.http.RespData
-
Success Response
- SUCCESS_SC - 类 中的静态变量org.openingo.jdkits.http.RespData.Config
-
success status code, default is 'success'.
- SUCCESS_SM - 类 中的静态变量org.openingo.jdkits.http.RespData.Config
-
success status code, default is 'response successful'.
- synchronizedList(List<T>) - 类 中的静态方法org.openingo.jdkits.collection.ListKit
-
Synchronized List
- SysKit - org.openingo.jdkits.sys中的类
-
SysKit
- SysOutPrintKit - org.openingo.jdkits.sys中的类
-
SysOutPrint Kit
printf方法中,格式为"%s"表示以字符串的形式输出第二个可变长参数的第一个参数值;
格式为"%n"表示换行;格式为"%S"表示将字符串以大写形式输出;在"%s"之间用"n$"表示
输出可变长参数的第n个参数值.格式为"%b"表示以布尔值的形式输出第二个可变长参数
的第一个参数值.
- SystemClockKit - org.openingo.jdkits.sys中的类
-
copy from myp
高并发场景下System.currentTimeMillis()的性能问题的优化
System.currentTimeMillis()的调用比new一个普通对象要耗时的多(具体耗时高出多少我还没测试过,有人说是100倍左右)
System.currentTimeMillis()之所以慢是因为去跟系统打了一次交道
后台定时更新时钟,JVM退出时,线程自动回收
10亿:43410,206,210.72815533980582%
1亿:4699,29,162.0344827586207%
1000万:480,12,40.0%
100万:50,10,5.0%