- ICache - org.tio.utils.cache中的接口
-
- ICache.NullClass - org.tio.utils.cache中的类
-
有时候需要放一个空对象到缓存中
- index() - 类 中的方法org.tio.utils.hutool.FastByteBuffer
-
当前缓冲位于缓冲区的索引位
- INDEX_NOT_FOUND - 类 中的静态变量org.tio.utils.hutool.ArrayUtil
-
数组中元素未找到的下标,值为-1
- INDEX_NOT_FOUND - 类 中的静态变量org.tio.utils.hutool.StrUtil
-
- indexOf(T[], Object) - 类 中的静态方法org.tio.utils.hutool.ArrayUtil
-
- indexOf(CharSequence, char) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
指定范围内查找指定字符
- indexOf(CharSequence, char, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
指定范围内查找指定字符
- indexOf(CharSequence, char, int, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
指定范围内查找指定字符
- indexOf(CharSequence, CharSequence, int, boolean) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
指定范围内反向查找字符串
- indexOfIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
指定范围内查找字符串,忽略大小写
StrUtil.indexOfIgnoreCase(null, *, *) = -1
StrUtil.indexOfIgnoreCase(*, null, *) = -1
StrUtil.indexOfIgnoreCase("", "", 0) = 0
StrUtil.indexOfIgnoreCase("aabaabaa", "A", 0) = 0
StrUtil.indexOfIgnoreCase("aabaabaa", "B", 0) = 2
StrUtil.indexOfIgnoreCase("aabaabaa", "AB", 0) = 1
StrUtil.indexOfIgnoreCase("aabaabaa", "B", 3) = 5
StrUtil.indexOfIgnoreCase("aabaabaa", "B", 9) = -1
StrUtil.indexOfIgnoreCase("aabaabaa", "B", -1) = 2
StrUtil.indexOfIgnoreCase("aabaabaa", "", 2) = 2
StrUtil.indexOfIgnoreCase("abc", "", 9) = -1
- indexOfIgnoreCase(CharSequence, CharSequence, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
指定范围内查找字符串
StrUtil.indexOfIgnoreCase(null, *, *) = -1
StrUtil.indexOfIgnoreCase(*, null, *) = -1
StrUtil.indexOfIgnoreCase("", "", 0) = 0
StrUtil.indexOfIgnoreCase("aabaabaa", "A", 0) = 0
StrUtil.indexOfIgnoreCase("aabaabaa", "B", 0) = 2
StrUtil.indexOfIgnoreCase("aabaabaa", "AB", 0) = 1
StrUtil.indexOfIgnoreCase("aabaabaa", "B", 3) = 5
StrUtil.indexOfIgnoreCase("aabaabaa", "B", 9) = -1
StrUtil.indexOfIgnoreCase("aabaabaa", "B", -1) = 2
StrUtil.indexOfIgnoreCase("aabaabaa", "", 2) = 2
StrUtil.indexOfIgnoreCase("abc", "", 9) = -1
- init(String, ClientDecorator) - 类 中的静态方法org.tio.utils.zk.Zk
-
- initConfig(String, String, T) - 类 中的静态方法org.tio.utils.ConfigUtils
-
- initConfig(String, String) - 类 中的静态方法org.tio.utils.ConfigUtils
-
- initConfig(String, String, String) - 类 中的静态方法org.tio.utils.ConfigUtils
-
- initConfig(String, String, String, char) - 类 中的静态方法org.tio.utils.ConfigUtils
-
- initConfig(String, String, String, T) - 类 中的静态方法org.tio.utils.ConfigUtils
-
如果finename1存在就加载finename1,否则加载finename2
- initConfig(String, String, String, char, T) - 类 中的静态方法org.tio.utils.ConfigUtils
-
如果finename1存在就加载finename1,否则加载finename2
- int2Str(int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
用缓存将int转成str
- IoUtils - org.tio.utils中的类
-
this class copied from org.apache.commons.io.IOUtils
- IoUtils() - 类 的构造器org.tio.utils.IoUtils
-
- IPropSupport - org.tio.utils.prop中的接口
-
属性支持接口
- IPV4 - 类 中的静态变量org.tio.utils.hutool.PatternPool
-
IP v4
- isAbstract(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
是否为抽象类
- isArray(Object) - 类 中的静态方法org.tio.utils.hutool.ArrayUtil
-
对象是否为数组对象
- isBasicType(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
是否为基本类型(包括包装类和原始类)
- isBlank(CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
字符串是否为空白 空白的定义如下:
1、为null
2、为不可见字符(如空格)
3、""
- isCanceled() - 类 中的方法org.tio.utils.thread.pool.AbstractSynRunnable
-
- isEmpty(Collection<?>) - 类 中的静态方法org.tio.utils.hutool.CollUtil
-
集合是否为空
- isEmpty() - 类 中的方法org.tio.utils.hutool.FastByteBuffer
-
- isEmpty(CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
字符串是否为空,空的定义如下:
1、为null
2、为""
- isEmpty() - 接口 中的方法org.tio.utils.queue.FullWaitQueue
-
- isEmpty() - 类 中的方法org.tio.utils.queue.TioFullWaitQueue
-
- isEnum(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
判断类是否为枚举类型
- isFirstPage() - 类 中的方法org.tio.utils.page.Page
-
- isIpv4(String) - 类 中的静态方法org.tio.utils.hutool.Validator
-
验证是否为IPV4地址
- isLastPage() - 类 中的方法org.tio.utils.page.Page
-
- isMactchRegex(Pattern, String) - 类 中的静态方法org.tio.utils.hutool.Validator
-
通过正则表达式验证
- isMatch(String, String) - 类 中的静态方法org.tio.utils.hutool.ReUtil
-
给定内容是否匹配正则
- isMatch(Pattern, String) - 类 中的静态方法org.tio.utils.hutool.ReUtil
-
给定内容是否匹配正则
- isMobile(UserAgent) - 类 中的静态方法org.tio.utils.UAUtils
-
是否是
- isNeededExecute() - 类 中的方法org.tio.utils.thread.pool.AbstractQueueRunnable
-
- isNeededExecute() - 类 中的方法org.tio.utils.thread.pool.AbstractSynRunnable
-
- isNormalClass(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
是否为标准的类
这个类必须:
1、非接口
2、非抽象类
3、非Enum枚举
4、非数组
5、非注解
6、非原始类型(int, long等)
- isNotBlank(CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
字符串是否为非空白 空白的定义如下:
1、不为null
2、不为不可见字符(如空格)
3、不为""
- isNotEmpty(Collection<?>) - 类 中的静态方法org.tio.utils.hutool.CollUtil
-
集合是否为非空
- isNotPublic(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
指定类是否为非public
- isNotPublic(Method) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
指定方法是否为非public
- isNumber(String) - 类 中的静态方法org.tio.utils.hutool.Validator
-
是否为数字
- isOk() - 类 中的方法org.tio.utils.resp.Resp
-
- isOk() - 类 中的方法org.tio.utils.resp.RespVo
-
- isPrimitiveWrapper(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
是否为包装类型
- isPublic(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
指定类是否为Public
- isPublic(Method) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
指定方法是否为Public
- isSimpleTypeOrArray(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
是否简单值类型或简单值类型的数组
包括:原始类型,、String、other CharSequence, a Number, a Date, a URI, a URL, a Locale or a Class及其数组
- isSimpleValueType(Class<?>) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
是否为简单值类型
包括:原始类型,、String、other CharSequence, a Number, a Date, a URI, a URL, a Locale or a Class.
- isStatic(Method) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
是否为静态方法
- isSubEquals(CharSequence, int, CharSequence, int, int, boolean) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
截取两个字符串的不同部分(长度一致),判断截取的子串是否相同
任意一个字符串为null返回false
- scanPackage(String, ClassScanHandler) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
扫描包路径下所有的class文件
代码摘自网上(https://gitee.com/liuyueyi/quicksilver/blob/master/silver-file/src/main/java/com.hust.hui.quicksilver.file/PkgUtil.java),但作了不少改造
- SECOND_1 - 类 中的静态变量org.tio.utils.time.Time
-
一秒
- SEMI_COL - 接口 中的静态变量org.tio.utils.SysConst
-
;
- set(String, Object) - 类 中的方法org.tio.utils.prop.MapWithLockPropSupport
-
同:setAttribute(String key, Object value)
- setAccessible(Method) - 类 中的静态方法org.tio.utils.hutool.ClassUtil
-
设置方法为可访问
- setAttribute(String, Object) - 接口 中的方法org.tio.utils.prop.IPropSupport
-
设置属性
- setAttribute(String, Object) - 类 中的方法org.tio.utils.prop.MapWithLockPropSupport
-
- setBetweenMs(long) - 类 中的方法org.tio.utils.hutool.BetweenFormater
-
设置 时长毫秒数
- setCacheName(String) - 类 中的方法org.tio.utils.cache.AbsCache
-
- setCacheName(String) - 类 中的方法org.tio.utils.cache.CacheChangedVo
-
- setCacheName(String) - 类 中的方法org.tio.utils.cache.redis.ExpireVo
-
- setCanceled(boolean) - 类 中的方法org.tio.utils.thread.pool.AbstractSynRunnable
-
- setClientId(String) - 类 中的方法org.tio.utils.cache.CacheChangedVo
-
- setCode(Integer) - 类 中的方法org.tio.utils.resp.Resp
-
- setCode(Integer) - 类 中的方法org.tio.utils.resp.RespVo
-
- setCode(int) - 类 中的方法org.tio.utils.ui.layui.table.LayuiPage
-
- setCount(long) - 类 中的方法org.tio.utils.ui.layui.table.LayuiPage
-
- setData(Object) - 类 中的方法org.tio.utils.resp.Resp
-
- setData(Object) - 类 中的方法org.tio.utils.resp.RespVo
-
- setData(Collection<Object>) - 类 中的方法org.tio.utils.ui.layui.table.LayuiPage
-
- setData(String, byte[]) - 类 中的静态方法org.tio.utils.zk.Zk
-
- setData(String, String) - 类 中的静态方法org.tio.utils.zk.Zk
-
- setDatacenterid(Integer) - 类 中的静态方法org.tio.utils.Uuid
-
- setKey(String) - 类 中的方法org.tio.utils.cache.CacheChangedVo
-
- setKey(String) - 类 中的方法org.tio.utils.cache.redis.ExpireVo
-
- setLevel(BetweenFormater.Level) - 类 中的方法org.tio.utils.hutool.BetweenFormater
-
设置格式化级别
- setList(List<T>) - 类 中的方法org.tio.utils.page.Page
-
- setMsg(String) - 类 中的方法org.tio.utils.resp.Resp
-
- setMsg(String) - 类 中的方法org.tio.utils.resp.RespVo
-
- setMsg(String) - 类 中的方法org.tio.utils.ui.layui.table.LayuiPage
-
- setName(String) - 类 中的方法org.tio.utils.thread.pool.SynThreadPoolExecutor
-
Sets the name.
- setObj(T) - 类 中的方法org.tio.utils.lock.ObjWithLock
-
- setPageNumber(Integer) - 类 中的方法org.tio.utils.page.Page
-
- setPageSize(Integer) - 类 中的方法org.tio.utils.page.Page
-
- setThreadName(String) - 类 中的方法org.tio.utils.thread.pool.DefaultThreadFactory
-
Sets the thread name.
- setTimeToIdleSeconds(Long) - 类 中的方法org.tio.utils.cache.AbsCache
-
- setTimeToIdleSeconds(long) - 类 中的方法org.tio.utils.cache.redis.ExpireVo
-
- setTimeToLiveSeconds(Long) - 类 中的方法org.tio.utils.cache.AbsCache
-
- setTotalPage(Integer) - 类 中的方法org.tio.utils.page.Page
-
- setTotalRow(Integer) - 类 中的方法org.tio.utils.page.Page
-
- setType(CacheChangeType) - 类 中的方法org.tio.utils.cache.CacheChangedVo
-
- SetWithLock<T> - org.tio.utils.lock中的类
-
- SetWithLock(Set<T>) - 类 的构造器org.tio.utils.lock.SetWithLock
-
- SetWithLock(Set<T>, ReentrantReadWriteLock) - 类 的构造器org.tio.utils.lock.SetWithLock
-
- setWorkid(Integer) - 类 中的静态方法org.tio.utils.Uuid
-
- ShortMessageTemplateExceptionHandler - org.tio.utils.freemarker中的类
-
ShortMessageTemplateExceptionHandler
- ShortMessageTemplateExceptionHandler() - 类 的构造器org.tio.utils.freemarker.ShortMessageTemplateExceptionHandler
-
- sign(String, String, String) - 类 中的静态方法org.tio.utils.crypto.Md5
-
签名字符串
- SimpleCache<K,V> - org.tio.utils.hutool中的类
-
- SimpleCache() - 类 的构造器org.tio.utils.hutool.SimpleCache
-
- size() - 类 中的方法org.tio.utils.cache.caffeine.CaffeineCache
-
- size() - 类 中的方法org.tio.utils.cache.guava.GuavaCache
-
- size() - 类 中的方法org.tio.utils.hutool.FastByteArrayOutputStream
-
- size() - 类 中的方法org.tio.utils.hutool.FastByteBuffer
-
- size() - 类 中的方法org.tio.utils.lock.ListWithLock
-
- size() - 类 中的方法org.tio.utils.lock.MapWithLock
-
- size() - 类 中的方法org.tio.utils.lock.SetWithLock
-
- size() - 接口 中的方法org.tio.utils.queue.FullWaitQueue
-
- size() - 类 中的方法org.tio.utils.queue.TioFullWaitQueue
-
- SLASH - 接口 中的静态变量org.tio.utils.SysConst
-
斜扛
- Snowflake - org.tio.utils.hutool中的类
-
Twitter的Snowflake 算法
分布式系统中,有一些需要使用全局唯一ID的场景,有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。
- Snowflake(long, long) - 类 的构造器org.tio.utils.hutool.Snowflake
-
构造
- SPACE - 接口 中的静态变量org.tio.utils.SysConst
-
一个空格
- SPACE_ - 接口 中的静态变量org.tio.utils.SysConst
-
- split(String, String) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
- SPLIT_FOR_CACHENAME - 类 中的静态变量org.tio.utils.cache.redis.RedisCache
-
- stackTrace() - 类 中的静态方法org.tio.utils.thread.ThreadUtils
-
- start() - 类 中的静态方法org.tio.utils.cache.redis.RedisExpireUpdateTask
-
- start() - 类 中的静态方法org.tio.utils.quartz.QuartzUtils
-
配置文件为"/config/tio-quartz.properties"
- start(String) - 类 中的静态方法org.tio.utils.quartz.QuartzUtils
-
- start() - 类 中的静态方法org.tio.utils.zk.Zk
-
Start the client.
- startWith(CharSequence, CharSequence, boolean) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
是否以指定字符串开头
如果给定的字符串和开头字符串都为null则返回true,否则任意一个值为null返回false
- startWith(CharSequence, char) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
字符串是否以给定字符开始
- startWith(CharSequence, CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
是否以指定字符串开头
- startWithIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
是否以指定字符串开头,忽略大小写
- str(Object, String) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
将对象转为字符串
1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法
- str(Object, Charset) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
将对象转为字符串
1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法
- str(CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
- STR_AMP - 接口 中的静态变量org.tio.utils.SysConst
-
&
- STR_COL - 接口 中的静态变量org.tio.utils.SysConst
-
:
- STR_EQ - 接口 中的静态变量org.tio.utils.SysConst
-
=
- streamToString(InputStream) - 类 中的静态方法org.tio.utils.IoUtils
-
- StrUtil - org.tio.utils.hutool中的类
-
- StrUtil() - 类 的构造器org.tio.utils.hutool.StrUtil
-
- sub(CharSequence, int, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
改进JDK subString
index从0开始计算,最后一个字符为-1
如果from和to位置一样,返回 ""
如果from或to为负数,则按照length从后向前数位置,如果绝对值大于字符串长度,则from归到0,to归到length
如果经过修正的index中from大于to,则互换from和to example:
abcdefgh 2 3 =》 c
abcdefgh 2 -3 =》 cde
- subAfter(CharSequence, CharSequence, boolean) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
截取分隔字符串之后的字符串,不包括分隔字符串
如果给定的字符串为空串(null或""),返回原字符串
如果分隔字符串为空串(null或""),则返回空串,如果分隔字符串未找到,返回空串
栗子:
StrUtil.subAfter(null, *) = null
StrUtil.subAfter("", *) = ""
StrUtil.subAfter(*, null) = ""
StrUtil.subAfter("abc", "a") = "bc"
StrUtil.subAfter("abcba", "b") = "cba"
StrUtil.subAfter("abc", "c") = ""
StrUtil.subAfter("abc", "d") = ""
StrUtil.subAfter("abc", "") = "abc"
- subBefore(CharSequence, CharSequence, boolean) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
截取分隔字符串之前的字符串,不包括分隔字符串
如果给定的字符串为空串(null或"")或者分隔字符串为null,返回原字符串
如果分隔字符串为空串"",则返回空串,如果分隔字符串未找到,返回原字符串
栗子:
StrUtil.subBefore(null, *) = null
StrUtil.subBefore("", *) = ""
StrUtil.subBefore("abc", "a") = ""
StrUtil.subBefore("abcba", "b") = "a"
StrUtil.subBefore("abc", "c") = "ab"
StrUtil.subBefore("abc", "d") = "abc"
StrUtil.subBefore("abc", "") = ""
StrUtil.subBefore("abc", null) = "abc"
- subBetween(CharSequence, CharSequence, CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
截取指定字符串中间部分,不包括标识字符串
栗子:
StrUtil.subBetween("wx[b]yz", "[", "]") = "b"
StrUtil.subBetween(null, *, *) = null
StrUtil.subBetween(*, null, *) = null
StrUtil.subBetween(*, *, null) = null
StrUtil.subBetween("", "", "") = ""
StrUtil.subBetween("", "", "]") = null
StrUtil.subBetween("", "[", "]") = null
StrUtil.subBetween("yabcz", "", "") = ""
StrUtil.subBetween("yabcz", "y", "z") = "abc"
StrUtil.subBetween("yabczyabcz", "y", "z") = "abc"
- subBetween(CharSequence, CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
截取指定字符串中间部分,不包括标识字符串
栗子:
StrUtil.subBetween(null, *) = null
StrUtil.subBetween("", "") = ""
StrUtil.subBetween("", "tag") = null
StrUtil.subBetween("tagabctag", null) = null
StrUtil.subBetween("tagabctag", "") = ""
StrUtil.subBetween("tagabctag", "tag") = "abc"
- submit(Runnable, R) - 类 中的方法org.tio.utils.thread.pool.SynThreadPoolExecutor
-
- subPre(CharSequence, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
切割指定位置之前部分的字符串
- subPreGbk(CharSequence, int, CharSequence) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
截取部分字符串,这里一个汉字的长度认为是2
- subSuf(CharSequence, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
切割指定位置之后部分的字符串
- subSufByLength(CharSequence, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
切割指定长度的后部分的字符串
StrUtil.subSufByLength("abcde", 3) = "cde"
StrUtil.subSufByLength("abcde", 0) = ""
StrUtil.subSufByLength("abcde", -5) = ""
StrUtil.subSufByLength("abcde", -1) = ""
StrUtil.subSufByLength("abcde", 5) = "abcde"
StrUtil.subSufByLength("abcde", 10) = "abcde"
StrUtil.subSufByLength(null, 3) = null
- subWithLength(String, int, int) - 类 中的静态方法org.tio.utils.hutool.StrUtil
-
截取字符串,从指定位置开始,截取指定长度的字符串
author weibaohui
- SynThreadPoolExecutor - org.tio.utils.thread.pool中的类
-
- SynThreadPoolExecutor(int, int, long, BlockingQueue<Runnable>, ThreadFactory, String) - 类 的构造器org.tio.utils.thread.pool.SynThreadPoolExecutor
-
- SynThreadPoolExecutor(int, int, long, BlockingQueue<Runnable>, ThreadFactory, String, RejectedExecutionHandler) - 类 的构造器org.tio.utils.thread.pool.SynThreadPoolExecutor
-
- SysConst - org.tio.utils中的接口
-
- SystemTimer - org.tio.utils中的类
-
- SystemTimer() - 类 的构造器org.tio.utils.SystemTimer
-
- SystemTimer.TimerListener - org.tio.utils中的接口
-