索引
常量字段值|所有程序包|所有类和接口|序列化表格
A
- abbreviate(TimeUnit) - 类中的静态方法 cn.wjybxx.base.time.TimeUtils
-
获取时间单位的字符串缩写
- AbstractConstant<T> - cn.wjybxx.base中的类
- AbstractConstant(Constant.Builder<?>) - 类的构造器 cn.wjybxx.base.AbstractConstant
- add(int, E) - 类中的方法 cn.wjybxx.base.collection.SmallArrayList
- add(E) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- add(E) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
- add(E) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- add(E) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- add(E) - 类中的方法 cn.wjybxx.base.collection.SmallArrayList
- addAll(ArrayList<E>, Collection<? extends E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- addAll(Collection<? extends E>) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- addAll(Collection<? extends E>) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
批量添加元素
- addAll(Collection<? extends E>) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- addAll(Collection<? extends E>) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- addFirst(E) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- addFirst(E) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- addFirst(E) - 类中的方法 cn.wjybxx.base.collection.SmallArrayList
- addLast(E) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- addLast(E) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- addLast(E) - 类中的方法 cn.wjybxx.base.collection.SmallArrayList
- Alias - cn.wjybxx.base.annotation中的批注接口
-
用于为字段或类型等定义别名
- allowDiscardHead() - 枚举类中的方法 cn.wjybxx.base.collection.DequeOverflowBehavior
- allowDiscardTail() - 枚举类中的方法 cn.wjybxx.base.collection.DequeOverflowBehavior
- append(char) - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- append(CharSequence) - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- append(CharSequence, int, int) - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
B
- beginItr() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
开始迭代
- beginItr() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- Beta - cn.wjybxx.base.annotation中的批注接口
-
用于标注接口/方法还不稳定
- blankToDef(String, String) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
空白字符串转默认字符串 -- 避免string泛型转换
- blankToDef(T, T) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
空白字符串转默认字符串
- BoundedArrayDeque<E> - cn.wjybxx.base.collection中的类
-
滑动式双端队列 1.当达到容量限制时,将自动移除另一端的元素。
- BoundedArrayDeque(int, DequeOverflowBehavior) - 类的构造器 cn.wjybxx.base.collection.BoundedArrayDeque
- build() - 类中的方法 cn.wjybxx.base.Constant.Builder
- Builder(String) - 类的构造器 cn.wjybxx.base.Constant.Builder
- ByteArrayPool - cn.wjybxx.base.io中的接口
-
Java不是真泛型,不能直接定义ArrayPool, 不过对于IO操作而言,绝大多数情况下使用字节数组的池就可以。
C
- CachedTimeProvider - cn.wjybxx.base.time中的接口
-
该接口表示实现类是基于缓存时间戳的,需要外部定时去更新 线程安全性取决于实现类
- capacity(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
计算hash结构的默认数组大小
- CaseMode - cn.wjybxx.base中的枚举类
-
大小写模式
- checkArgument(boolean) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkArgument(boolean, Object) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkBetween(int, int, int) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查value是否在指定范围内
- checkBetween(int, int, int, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查value是否在指定范围内
- checkBetween(long, long, long) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查value是否在指定范围内
- checkBetween(long, long, long, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查value是否在指定范围内
- checkedForNumber(int) - 接口中的方法 cn.wjybxx.base.EnumLiteMap
-
通过数字找到对应的枚举
- checkedGetId() - 类中的方法 cn.wjybxx.base.Constant.Builder
- checkElementIndex(int, int) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkElementIndex(int, int, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkInterrupted() - 类中的静态方法 cn.wjybxx.base.ThreadUtils
-
检查线程中断状态。
- checkName(String) - 类中的静态方法 cn.wjybxx.base.ConstantPool
-
检查name的合法性
- checkNoneWhiteSpace(String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNoneWhiteSpace(String, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNonNegative(int) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字似乎为‘非负数’
- checkNonNegative(int, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字似乎为‘非负数’
- checkNonNegative(long) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字似乎为‘非负数’
- checkNonNegative(long, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字似乎为‘非负数’
- checkNotBlank(String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotBlank(String, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotEmpty(Object[]) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotEmpty(Object[], String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotEmpty(String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotEmpty(String, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotEmpty(Collection<?>) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotEmpty(Collection<?>, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotNull(T) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNotNull(T, Object) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkNullElements(Object[]) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数组里是否存在null,如果元素里存在null则抛出异常
- checkNullElements(Collection<?>) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查集合里是否存在null,如果元素里存在null则抛出异常
- checkNumberContinuity(List<T>, Integer) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
检查枚举的number是从指定值开始且连续
- checkNumberContinuity(List<T>, Integer, ToIntFunction<? super T>) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
检查枚举中的number是否连续 注意:如果集合为空的话,这里不会抛出异常
- checkNumberDuplicate(List<T>) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
检查枚举中的number是否存在重复
- checkNumberDuplicate(List<T>, ToIntFunction<? super T>) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
检查枚举中的number是否存在重复
- checkPositive(int) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字是否为正数
- checkPositive(int, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字是否为正数
- checkPositive(long) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字是否为正数
- checkPositive(long, String) - 类中的静态方法 cn.wjybxx.base.Preconditions
-
检查数字是否为正数
- checkState(boolean) - 类中的静态方法 cn.wjybxx.base.Preconditions
- checkState(boolean, Object) - 类中的静态方法 cn.wjybxx.base.Preconditions
- CIRCLE_BUFFER - 枚举类 中的枚举常量 cn.wjybxx.base.collection.DequeOverflowBehavior
-
环形缓冲 -- 首部插入时覆盖尾部;尾部插入时覆盖首部。
- clamp(double, double, double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- clamp(float, float, float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- clamp(int, int, int) - 类中的静态方法 cn.wjybxx.base.MathCommon
- clamp(long, long, long) - 类中的静态方法 cn.wjybxx.base.MathCommon
- clamp01(double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- clamp01(float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- clear() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- clear() - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- clear() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
- clear() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- clear() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- clear() - 类中的方法 cn.wjybxx.base.io.LocalByteArrayPool
- clear() - 类中的方法 cn.wjybxx.base.io.LocalStringBuilderPool
- clear() - 类中的方法 cn.wjybxx.base.io.StringBuilderPool
- clear() - 类中的方法 cn.wjybxx.base.pool.DefaultObjectPool
- clear() - 接口中的方法 cn.wjybxx.base.pool.ObjectPool
-
删除此池中的所有对象 (可空实现)
- clear() - 类中的方法 cn.wjybxx.base.pool.SingleObjectPool
- clear(Collection<?>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- clear(Map<?, ?>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- CLEAR - 接口中的静态变量 cn.wjybxx.base.pool.ResetPolicy
- CLEAR_MAP - 接口中的静态变量 cn.wjybxx.base.pool.ResetPolicy
- clearIgnoringIndexes() - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- clearIgnoringIndexes() - 接口中的方法 cn.wjybxx.base.collection.IndexedCollection
-
清除队列中的所有元素,并不更新队列中节点的索引,通常用在最后清理释放内存的时候。
- clone() - 类中的方法 cn.wjybxx.base.AbstractConstant
- close() - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- cn.wjybxx.base - 程序包 cn.wjybxx.base
- cn.wjybxx.base.annotation - 程序包 cn.wjybxx.base.annotation
- cn.wjybxx.base.collection - 程序包 cn.wjybxx.base.collection
- cn.wjybxx.base.ex - 程序包 cn.wjybxx.base.ex
- cn.wjybxx.base.io - 程序包 cn.wjybxx.base.io
- cn.wjybxx.base.pool - 程序包 cn.wjybxx.base.pool
- cn.wjybxx.base.reflect - 程序包 cn.wjybxx.base.reflect
- cn.wjybxx.base.time - 程序包 cn.wjybxx.base.time
- collectionIndex(Object) - 接口中的方法 cn.wjybxx.base.collection.IndexedElement
-
获取对象在集合中的索引
- collectionIndex(Object) - 类中的方法 cn.wjybxx.base.collection.RefIndexedElement
- collectionIndex(Object, int) - 接口中的方法 cn.wjybxx.base.collection.IndexedElement
-
设置其在集合中的索引
- collectionIndex(Object, int) - 类中的方法 cn.wjybxx.base.collection.RefIndexedElement
- CollectionUtils - cn.wjybxx.base中的类
- collectTo(Collection<? super E>) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
将List中的元素写入目标集合
- comment() - 批注接口 中的元素 cn.wjybxx.base.annotation.Priority
-
注释
- comment() - 批注接口 中的元素 cn.wjybxx.base.annotation.StableName
-
自定义注释
- compareTo(T) - 类中的方法 cn.wjybxx.base.AbstractConstant
- composeIntToLong(int, int) - 类中的静态方法 cn.wjybxx.base.MathCommon
-
将两个int聚合为long
- composeShortToInt(short, short) - 类中的静态方法 cn.wjybxx.base.MathCommon
-
将两个short聚合为int
- Constant<T> - cn.wjybxx.base中的接口
-
常量
- Constant.Builder<T> - cn.wjybxx.base中的类
- ConstantFactory<T> - cn.wjybxx.base中的接口
-
只有可通过基础的Builder构建的常量才会使用到Factory
- ConstantMap<T> - cn.wjybxx.base中的类
-
由于
ConstantPool是可变的,这使得有些查询是高开销的,比如:ConstantPool.values() - ConstantPool<T> - cn.wjybxx.base中的类
-
常量池
- contains(Object) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- contains(Object) - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- contains(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
基于equals查询一个元素是否在List中
- contains(Object) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- containsAll(Collection<?>) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- containsAll(Collection<?>) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- containsCustom(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- containsRef(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
基于引用相等查询一个元素是否在List中
- containsRef(List<?>, Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- containsRef(T[], Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
判断是否存在给定元素的引用
- containsTyped(T) - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- containsTyped(T) - 接口中的方法 cn.wjybxx.base.collection.IndexedPriorityQueue
- containsWhitespace(CharSequence) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
是否包含不可见字符
- correctTime(long) - 类中的方法 cn.wjybxx.base.time.Regulator
-
校准时间
- create(String) - 类中的静态方法 cn.wjybxx.base.time.StopWatch
-
创建一个停表
- createStarted(String) - 类中的静态方法 cn.wjybxx.base.time.StopWatch
-
创建一个已启动的停表
D
- DAY - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
一天的毫秒数
- DAYS_PER_WEEK - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- DEFAULT_FORMATTER - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
默认时间格式器
- DEFAULT_PATTERN - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
默认的时间格式
- DefaultIndexedPriorityQueue<T> - cn.wjybxx.base.collection中的类
-
参考自Netty的实现
- DefaultIndexedPriorityQueue(Comparator<? super T>) - 类的构造器 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- DefaultIndexedPriorityQueue(Comparator<? super T>, int) - 类的构造器 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- DefaultObjectPool<T> - cn.wjybxx.base.pool中的类
-
对象池的默认实现
- DefaultObjectPool(Supplier<? extends T>, ResetPolicy<? super T>) - 类的构造器 cn.wjybxx.base.pool.DefaultObjectPool
- DefaultObjectPool(Supplier<? extends T>, ResetPolicy<? super T>, int) - 类的构造器 cn.wjybxx.base.pool.DefaultObjectPool
- DelayedCompressList<E> - cn.wjybxx.base.collection中的接口
-
迭代期间延迟压缩空间的List,在迭代期间删除元素只会清理元素,不会减少size,而插入元素会添加到List末尾并增加size 1.不支持插入Null -- 理论上做的到,但会导致较高的复杂度,也很少有需要。
- DelayedCompressListImpl<E> - cn.wjybxx.base.collection中的类
- DelayedCompressListImpl() - 类的构造器 cn.wjybxx.base.collection.DelayedCompressListImpl
- DelayedCompressListImpl(int) - 类的构造器 cn.wjybxx.base.collection.DelayedCompressListImpl
- DelayedCompressListImpl(Collection<? extends E>) - 类的构造器 cn.wjybxx.base.collection.DelayedCompressListImpl
- DequeOverflowBehavior - cn.wjybxx.base.collection中的枚举类
-
有界双端队列的溢出策略
- descendingIterator() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- descendingIterator() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- differDays(long, long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
计算两个时间戳相差的天数
- differWeeks(long, long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
计算两个时间戳相差的周数
- DISCARD_HEAD - 枚举类 中的枚举常量 cn.wjybxx.base.collection.DequeOverflowBehavior
-
丢弃首部 -- 当尾部插入元素时,允许覆盖首部;首部插入时抛出异常。
- DISCARD_TAIL - 枚举类 中的枚举常量 cn.wjybxx.base.collection.DequeOverflowBehavior
-
丢弃尾部 -- 当首部插入元素时,允许覆盖尾部;尾部插入时抛出异常。
- disjoint(Collection<?>, Collection<?>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
如果两个集合没有任何公共元素,则返回true
- DO_NOTHING - 接口中的静态变量 cn.wjybxx.base.pool.ResetPolicy
- DOUBLE_ROUNDING_ERROR - 类中的静态变量 cn.wjybxx.base.MathCommon
E
- elapsed() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
获取开始到现在消耗的总时间
- elapsed(TimeUnit) - 类中的方法 cn.wjybxx.base.time.StopWatch
-
获取开始到现在消耗的总时间
- element() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- element() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- EMPTY - 枚举类 中的枚举常量 cn.wjybxx.base.OptionalBool
- EMPTY_BOOLEAN_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_BYTE_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_CLASS_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_DOUBLE_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_FLOAT_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_INT_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_LONG_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_OBJECT_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EMPTY_STRING_ARRAY - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- EmptyDequeue<E> - cn.wjybxx.base.collection中的类
- EmptyDequeue() - 类的构造器 cn.wjybxx.base.collection.EmptyDequeue
- emptyToDef(String, String) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
空字符串转默认字符串 -- 避免string泛型转换
- emptyToDef(T, T) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
空字符串转默认字符串
- END_OF_DAY - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
一天的结束:午夜 23:59:59
- endItr() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
迭代结束 -- 必须在finally块中调用,否则可能使List处于无效状态
- endItr() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- EnumLite - cn.wjybxx.base中的接口
- EnumLiteMap<T> - cn.wjybxx.base中的接口
-
实现类应该保持为不可变
- EnumUtils - cn.wjybxx.base中的类
- equals(Object) - 类中的方法 cn.wjybxx.base.AbstractConstant
- ErrorCodeException - cn.wjybxx.base.ex中的异常错误类
-
用于返回一个错误码结果,Rpc底层会对此做特殊支持
- ErrorCodeException(int, String) - 异常错误类的构造器 cn.wjybxx.base.ex.ErrorCodeException
- ExceptionUtils - cn.wjybxx.base.ex中的类
-
异常工具类
- ExceptionUtils() - 类的构造器 cn.wjybxx.base.ex.ExceptionUtils
- execute(String, Object) - 接口中的方法 cn.wjybxx.base.ExtensibleObject
-
执行一个命令(用于扩展方法)。
- exists(String) - 类中的方法 cn.wjybxx.base.ConstantMap
- exists(String) - 类中的方法 cn.wjybxx.base.ConstantPool
- ExtensibleObject - cn.wjybxx.base中的接口
-
可扩展的对象。
F
- FALSE - 枚举类 中的枚举常量 cn.wjybxx.base.OptionalBool
- findFirst(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- findLast(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- findTypeMatcher(T, Class<? super T>, String) - 类中的静态方法 cn.wjybxx.base.reflect.TypeParameterMatcher
-
查找指定泛型参数对应的类型匹配器。
- findTypeParameter(T, Class<? super T>, String) - 类中的静态方法 cn.wjybxx.base.reflect.TypeParameterFinder
-
从instance所属的类开始,查找在superClazzOrInterfaced定义的泛型参数typeParamName的具体类型 (该方法更安全)
- findTypeParameterUnsafe(Class<T>, Class<? super T>, String) - 类中的静态方法 cn.wjybxx.base.reflect.TypeParameterFinder
-
从指定类开始查找在superClazzOrInterfaced定义的泛型参数typeParamName的具体类型。
- first(Collection<E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
获取集合的首个元素
- firstCharToLowerCase(String) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
首字母小写
- firstCharToUpperCase(String) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
首字母大写
- firstEntry(Map<K, V>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- firstKey(Map<K, ?>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- firstOrDefault(Collection<E>, E) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
如果集合不为空,则返回第一个元素,否则返回默认值
- firstOrDefault(List<E>, E) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- FLOAT_ROUNDING_ERROR - 类中的静态变量 cn.wjybxx.base.MathCommon
- flush() - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- forceReady(long) - 类中的方法 cn.wjybxx.base.time.Regulator
-
强制使用当前时间更新调节器。
- forEach(Consumer<? super E>) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- forEach(Consumer<? super E>) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
迭代List内的元素,该快捷方式不会迭代迭代期间新增的元素 如果需要元素的下标,请使用
DelayedCompressList.forEach(ObjIntConsumer) - forEach(Consumer<? super E>) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- forEach(Consumer<? super E>) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- forEach(ObjIntConsumer<? super E>) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
迭代List内的元素,该快捷方式不会迭代迭代期间新增的元素
- forEach(ObjIntConsumer<? super E>) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- formatTime(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
将 毫秒时间 格式化为 默认字符串格式
DEFAULT_PATTERN - formatTime(long, DateTimeFormatter) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
将 毫秒时间 格式化为 指定格式
- forName(List<T>, String) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
通过名字查找枚举。
- forNameIgnoreCase(List<T>, String) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
通过名字查找枚举(忽略名字的大小写)。
- forNumber(int) - 枚举类中的静态方法 cn.wjybxx.base.collection.DequeOverflowBehavior
-
序列化
- forNumber(int) - 接口中的方法 cn.wjybxx.base.EnumLiteMap
-
通过数字找到对应的枚举
- forNumber(int) - 枚举类中的静态方法 cn.wjybxx.base.OptionalBool
- forNumber(int, T) - 接口中的方法 cn.wjybxx.base.EnumLiteMap
G
- get() - 类中的方法 cn.wjybxx.base.collection.RefIndexedElement
- get() - 接口中的方法 cn.wjybxx.base.pool.ObjectPool
-
该接口仅用于适配,一般业务不建议使用
- get(int) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
获取指定位置的元素
- get(int) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- get(String) - 类中的方法 cn.wjybxx.base.ConstantMap
-
获取一个常量,若不存在关联的常量则返回null。
- get(String) - 类中的方法 cn.wjybxx.base.ConstantPool
-
获取一个常量,若不存在关联的常量则返回null。
- getAsBool() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- getBool(Properties, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getBool(Properties, String, boolean) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getBuilder() - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- getCallerInfo(int) - 类中的静态方法 cn.wjybxx.base.ThreadUtils
-
获取调用者信息。
- getCallerInfo(Predicate<StackWalker.StackFrame>) - 类中的静态方法 cn.wjybxx.base.ThreadUtils
-
获取调用者信息。
- getContext() - 类中的方法 cn.wjybxx.base.time.Regulator
-
任务关联的上下文
- getCount() - 类中的方法 cn.wjybxx.base.time.Regulator
-
已触发次数
- getDelay(long) - 类中的方法 cn.wjybxx.base.time.Regulator
-
获取下次执行的延迟
- getDeltaTime() - 类中的方法 cn.wjybxx.base.time.Regulator
-
如果是固定频率的调节器,应该使用
Regulator.getPeriod()获取更新间隔。 - getDeltaTime() - 接口中的方法 cn.wjybxx.base.time.Timepiece
-
(这其实只是个工具方法,提供在底层,是因为使用的较为普遍)
- getDouble(Properties, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getDouble(Properties, String, double) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getErrorCode() - 异常错误类中的方法 cn.wjybxx.base.ex.ErrorCodeException
- getExtBlackboard() - 接口中的方法 cn.wjybxx.base.ExtensibleObject
-
获取对象的扩展黑板(用于临时存储属性) 注意:必须是对象的一个属性字段。
- getFirst() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- getFirst() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- getFirstDelay() - 类中的方法 cn.wjybxx.base.time.Regulator
- getFloat(Properties, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getFloat(Properties, String, float) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getId() - 类中的方法 cn.wjybxx.base.Constant.Builder
- getInstance() - 类中的静态方法 cn.wjybxx.base.collection.EmptyDequeue
- getInt(Properties, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getInt(Properties, String, int) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getLast() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- getLast() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- getLastUpdateTime() - 类中的方法 cn.wjybxx.base.time.Regulator
-
获取上次成功更新的时间戳 它的具体含义取悦于更新时使用的
curTime的含义。 - getLog() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
获取最终log。
- getLong(Properties, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getLong(Properties, String, long) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getName() - 类中的方法 cn.wjybxx.base.Constant.Builder
- getName() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
停表的名字
- getNumber() - 枚举类中的方法 cn.wjybxx.base.collection.DequeOverflowBehavior
- getNumber() - 接口中的方法 cn.wjybxx.base.EnumLite
- getNumber() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- getOffsetMillis() - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取时区的毫秒偏移量
- getOffsetSeconds() - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取时区的秒偏移量
- getOrDefault(List<E>, int, E) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
注意:如果list包含null,且def也是null,则返回Null时无法判断是否来自集合。
- getOrThrow(String) - 类中的方法 cn.wjybxx.base.ConstantMap
-
获取一个常量,若不存在关联的常量则抛出异常
- getOrThrow(String) - 类中的方法 cn.wjybxx.base.ConstantPool
-
获取一个常量,若不存在关联的常量则抛出异常
- getOrThrow(Map<K, V>, K) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
如果给定键不存在则抛出异常
- getOrThrow(Map<K, V>, K, String) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- getPeriod() - 类中的方法 cn.wjybxx.base.time.Regulator
- getRootCause(Throwable) - 类中的静态方法 cn.wjybxx.base.ex.ExceptionUtils
- getShort(Properties, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getShort(Properties, String, short) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getSortedLog() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
获取按照时间消耗排序后的log。
- getString(Properties, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getString(Properties, String, String) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- getThrowableList(Throwable) - 类中的静态方法 cn.wjybxx.base.ex.ExceptionUtils
- getTime() - 接口中的方法 cn.wjybxx.base.time.Timepiece
- getTime() - 接口中的方法 cn.wjybxx.base.time.TimeProvider
-
获取当前的时间戳 时间的单位需要自行约定,通常是毫秒
- getTimeBeginOfMonth(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取本月的开始时间戳 本月第一天的 00:00:00.000
- getTimeBeginOfMonth(long, int) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取月的开始时间戳
- getTimeBeginOfToday(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取指定时间戳所在日期的00:00:00的毫秒时间戳
- getTimeBeginOfWeek(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取指定时间戳所在周的周一00:00:00的毫秒时间戳
- getTimeEndOfMonth(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取本月的结束时间戳 本月最后一天的23:59:59.999
- getTimeEndOfMonth(long, int) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取月的结束时间戳
- getTimeEndOfToday(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取指定时间戳所在日期的23:59:59的毫秒时间戳
- getTimeEndOfWeek(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取指定时间戳所在周的周日23:59:59.999的毫秒时间戳
- getTimeHourOfToday(long, int) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取当天特定小时的时间戳
- getZoneOffset() - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
获取时区偏移
H
- hashCode() - 类中的方法 cn.wjybxx.base.AbstractConstant
- hashCode(Object) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- hashCode(Object...) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- hashCode(Object, Object) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- hashCode(Object, Object, Object) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- HH_MM - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
时分的格式化器
- HH_MM_SS - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
时分秒的格式化器
- higherIntOfLong(long) - 类中的静态方法 cn.wjybxx.base.MathCommon
- higherShortOfInt(int) - 类中的静态方法 cn.wjybxx.base.MathCommon
- HOUR - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
一小时的毫秒数
- HOURS_PER_DAY - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
I
- id() - 类中的方法 cn.wjybxx.base.AbstractConstant
- id() - 接口中的方法 cn.wjybxx.base.Constant
-
注意: 1.
- index(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
基于equals查找元素在List中的位置
- index(Object) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- INDEX_NOT_FOUND - 接口中的静态变量 cn.wjybxx.base.collection.DelayedCompressList
- INDEX_NOT_FOUND - 类中的静态变量 cn.wjybxx.base.CollectionUtils
- INDEX_NOT_FOUNT - 接口中的静态变量 cn.wjybxx.base.collection.IndexedElement
-
注意:未插入的节点的所以必须初始化为该值
- indexCustom(Predicate<? super E>) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
自定义index查询;自定义查询时不支持查找null
- IndexedCollection<E> - cn.wjybxx.base.collection中的接口
-
在元素身上存储了索引信息的集合。
- IndexedElement - cn.wjybxx.base.collection中的接口
-
被索引的元素 1.索引信息存储在元素上,可大幅提高查找效率; 2.如果对象可能存在多个集合中,慎重实现该接口,更建议为每个集合设置一个粘合对象;
- IndexedPriorityQueue<T> - cn.wjybxx.base.collection中的接口
-
参考自netty的实现 由于
Collection中的API是基于Object的,不利于查询性能,添加了一些限定类型的方法。 - indexOfCustom(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- indexOfRef(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
基于引用相等查找元素在List中的位置
- indexOfRef(Object) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- indexOfRef(List<?>, Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
查找对象引用在数组中的索引
- indexOfRef(List<?>, Object, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
查找对象引用在List中的索引
- indexOfRef(T[], Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
查找对象引用在数组中的索引
- indexOfRef(T[], Object, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
查找对象引用在数组中的索引
- InfiniteLoopException - cn.wjybxx.base.ex中的异常错误类
-
死循环预防
- InfiniteLoopException() - 异常错误类的构造器 cn.wjybxx.base.ex.InfiniteLoopException
- InfiniteLoopException(String) - 异常错误类的构造器 cn.wjybxx.base.ex.InfiniteLoopException
- InfiniteLoopException(String, Throwable) - 异常错误类的构造器 cn.wjybxx.base.ex.InfiniteLoopException
- InfiniteLoopException(String, Throwable, boolean, boolean) - 异常错误类的构造器 cn.wjybxx.base.ex.InfiniteLoopException
- InfiniteLoopException(Throwable) - 异常错误类的构造器 cn.wjybxx.base.ex.InfiniteLoopException
- INSTANCE - 类中的静态变量 cn.wjybxx.base.collection.EmptyDequeue
- INSTANCE - 类中的静态变量 cn.wjybxx.base.io.LocalByteArrayPool
- INSTANCE - 类中的静态变量 cn.wjybxx.base.io.LocalStringBuilderPool
- INT_MASK1 - 类中的静态变量 cn.wjybxx.base.MathCommon
- INT_MASK2 - 类中的静态变量 cn.wjybxx.base.MathCommon
- INT_MASK3 - 类中的静态变量 cn.wjybxx.base.MathCommon
- INT_MASK4 - 类中的静态变量 cn.wjybxx.base.MathCommon
- Internal - cn.wjybxx.base.annotation中的批注接口
-
该注解注解的类/方法表示为内部实现,外部不要使用
- inverseMap(Map<K, V>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- inverseMap(Map<K, V>, Map<V, K>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- invert() - 枚举类中的方法 cn.wjybxx.base.CaseMode
- isBetween(double, double, double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isBetween(float, float, float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isBetween(int, int, int) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isBetween(long, long, long) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isBetween(short, short, short) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isBlank(CharSequence) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- isChecked(Throwable) - 类中的静态方法 cn.wjybxx.base.ex.ExceptionUtils
- isDelayed() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
是否处于延迟压缩状态;是否在迭代期间删除了元素
- isDelayed() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- isEmpty() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- isEmpty() - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- isEmpty() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
- isEmpty() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- isEmpty() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- isEmpty() - 接口中的方法 cn.wjybxx.base.EnumLiteMap
- isEmpty() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- isEmpty(CharSequence) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- isEmpty(Collection<?>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- isEmpty(Map<?, ?>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- isEqual(double, double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isEqual(double, double, double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isEqual(float, float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isEqual(float, float, float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isEven(int) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isFalse() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- isIterating() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
当前是否正在迭代
- isIterating() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- isLowerCase() - 枚举类中的方法 cn.wjybxx.base.CaseMode
- isNumberContinuity(List<T>) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
枚举的数字是否连续
- isNumberContinuity(List<T>, ToIntFunction<? super T>) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
枚举的数字是否连续
- isOdd(int) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isPeriodic() - 类中的方法 cn.wjybxx.base.time.Regulator
- isPowerOfTwo(int) - 类中的静态方法 cn.wjybxx.base.MathCommon
-
判断一个值是否是2的整次幂
- isPresent() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- isReady(long) - 类中的方法 cn.wjybxx.base.time.Regulator
- isRealEmpty() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
查询List是否真的为空 如果当前正在迭代,则可能产生遍历统计的情况,要注意开销问题。
- isRealEmpty() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- isRunning() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
停表是否处于运行状态
- isSameDay(long, long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
判断两个时间是否是同一天 (同样的两个时间戳,在不同的时区,结果可能不同)
- isSameWeek(long, long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
判断两个时间是否是同一周
- isStarted() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
停表是否已启动,且尚未停止
- isStopped() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
停表是否已停止
- isSuspended() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
停表是否处于挂起/暂停状态
- isTrue() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- isUnchecked(Throwable) - 类中的静态方法 cn.wjybxx.base.ex.ExceptionUtils
- isUpperCase() - 枚举类中的方法 cn.wjybxx.base.CaseMode
- isZero(double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isZero(double, double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isZero(float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- isZero(float, float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- iterator() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- iterator() - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- iterator() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
J
- joint(Collection<?>, Collection<?>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
如果两个集合存在公共元素,则返回true
- joinUninterruptedly(Thread) - 类中的静态方法 cn.wjybxx.base.ThreadUtils
L
- lastChar(CharSequence) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
获取字符串的尾字符
- lastIndex(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
基于equals逆向查找元素在List中的位置
- lastIndex(Object) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- lastIndexCustom(Predicate<? super E>) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
- lastIndexOfCustom(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- lastIndexOfRef(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
基于引用相等逆向查找元素在List中的位置
- lastIndexOfRef(Object) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- lastIndexOfRef(List<?>, Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
反向查找对象引用在List中的索引
- lastIndexOfRef(List<?>, Object, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
反向查找对象引用在List中的索引
- lastIndexOfRef(T[], Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
反向查找对象引用在数组中的索引
- lastIndexOfRef(T[], Object, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
反向查找对象引用在数组中的索引
- lastOrDefault(List<E>, E) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- length(CharSequence) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- lengthOfMonth(LocalDateTime) - 类中的静态方法 cn.wjybxx.base.time.TimeUtils
-
获取月份的天数,总是忘记api...
- listStepElapsed() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
获取当前已有的步骤耗时信息
- LocalByteArrayPool - cn.wjybxx.base.io中的类
-
基于ThreadLocal的简单buffer池
- LocalByteArrayPool() - 类的构造器 cn.wjybxx.base.io.LocalByteArrayPool
- LocalStringBuilderPool - cn.wjybxx.base.io中的类
-
基于ThreadLocal的Builder池
- LocalStringBuilderPool() - 类的构造器 cn.wjybxx.base.io.LocalStringBuilderPool
- logStep(String) - 类中的方法 cn.wjybxx.base.time.StopWatch
-
记录该步骤的耗时
- LONG_MASK1 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MASK2 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MASK3 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MASK4 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MASK5 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MASK6 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MASK7 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MASK8 - 类中的静态变量 cn.wjybxx.base.MathCommon
- LONG_MAX_POWER_OF_TWO - 类中的静态变量 cn.wjybxx.base.MathCommon
- LOWER_CASE - 枚举类 中的枚举常量 cn.wjybxx.base.CaseMode
- lowerIntOfLong(long) - 类中的静态方法 cn.wjybxx.base.MathCommon
- lowerShortOfInt(int) - 类中的静态方法 cn.wjybxx.base.MathCommon
M
- mapping(T[]) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
根据枚举的values建立索引;
- mapping(T[], boolean) - 类中的静态方法 cn.wjybxx.base.EnumUtils
-
根据枚举的values建立索引;
- MarkInterface - cn.wjybxx.base.annotation中的批注接口
-
用于标注目标接口为标记接口
- matchInstance(Object) - 类中的方法 cn.wjybxx.base.reflect.TypeParameterMatcher
-
查询实例是否与泛型参数匹配
- matchType(Class<?>) - 类中的方法 cn.wjybxx.base.reflect.TypeParameterMatcher
-
查询指定类是否是泛型参数的子类
- MathCommon - cn.wjybxx.base中的类
- MathCommon() - 类的构造器 cn.wjybxx.base.MathCommon
- max(double, double, double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- max(float, float, float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- max(int, int, int) - 类中的静态方法 cn.wjybxx.base.MathCommon
- max(long, long, long) - 类中的静态方法 cn.wjybxx.base.MathCommon
- max(short, short) - 类中的静态方法 cn.wjybxx.base.MathCommon
- max(short, short, short) - 类中的静态方法 cn.wjybxx.base.MathCommon
- MAX_POWER_OF_TWO - 类中的静态变量 cn.wjybxx.base.MathCommon
- MILLIS_PER_SECOND - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- min(double, double, double) - 类中的静态方法 cn.wjybxx.base.MathCommon
- min(float, float, float) - 类中的静态方法 cn.wjybxx.base.MathCommon
- min(int, int, int) - 类中的静态方法 cn.wjybxx.base.MathCommon
- min(long, long, long) - 类中的静态方法 cn.wjybxx.base.MathCommon
- min(short, short) - 类中的静态方法 cn.wjybxx.base.MathCommon
- min(short, short, short) - 类中的静态方法 cn.wjybxx.base.MathCommon
- MINUTE - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
一分的毫秒数
- MINUTES_PER_DAY - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- MINUTES_PER_HOUR - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- MINUTES_PER_WEEK - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- multiplyToInt(short, short) - 类中的静态方法 cn.wjybxx.base.MathCommon
-
两个short安全相乘,返回一个int,避免越界;相乘之后再强转可能越界.
- multiplyToLong(int, int) - 类中的静态方法 cn.wjybxx.base.MathCommon
-
两个int安全相乘,返回一个long,避免越界;相乘之后再强转可能越界。
N
- name() - 类中的方法 cn.wjybxx.base.AbstractConstant
- name() - 接口中的方法 cn.wjybxx.base.Constant
-
注意: 1.
- names() - 类中的方法 cn.wjybxx.base.ConstantMap
- NANOS_PER_DAY - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- NANOS_PER_HOURS - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- NANOS_PER_MILLI - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- NANOS_PER_MINUTES - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- NANOS_PER_SECOND - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- newArrayList(E) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newArrayList(E, E) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newArrayList(E, E, E) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newConstant(Constant.Builder<T>) - 接口中的方法 cn.wjybxx.base.ConstantFactory
- newConstantMap() - 类中的方法 cn.wjybxx.base.ConstantPool
-
创建一个当前常量池的快照
- newDelayedCompressList() - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newDelayedCompressList(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newDelayedCompressList(Collection<? extends E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newFixedDelay(long, long) - 类中的静态方法 cn.wjybxx.base.time.Regulator
- newFixedRate(long, long) - 类中的静态方法 cn.wjybxx.base.time.Regulator
- newHashMap(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
创建一个能存储指定元素数量的HashMap
- newHashMap(K, V) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
创建一个包含初始kv的HashMap
- newHashMap(K, V, K, V) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newHashSet(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newIdentityHashMap(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newIdentityHashSet(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newInstance(Constant.Builder<T>) - 类中的方法 cn.wjybxx.base.ConstantPool
-
创建一个常量,如果已存在关联的常量,则抛出异常。
- newInstance(String) - 类中的方法 cn.wjybxx.base.ConstantPool
-
创建一个常量,如果已存在关联的常量,则抛出异常。
- newLinkedHashMap(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
创建一个能存储指定元素数量的LinkedHashMap
- newLinkedHashMap(K, V) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
创建一个包含初始kv的LinkedHashMap
- newLinkedHashMap(K, V, K, V) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newLinkedHashSet(int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- newOnce(long) - 类中的静态方法 cn.wjybxx.base.time.Regulator
- newPool(ConstantFactory<? extends T>) - 类中的静态方法 cn.wjybxx.base.ConstantPool
- newPool(ConstantFactory<? extends T>, int) - 类中的静态方法 cn.wjybxx.base.ConstantPool
- newTimepiece() - 类中的静态方法 cn.wjybxx.base.time.TimeProviders
-
创建一个基于deltaTime更新的时间提供器,用在一些特殊的场合。
- newTimeProvider(long) - 类中的静态方法 cn.wjybxx.base.time.TimeProviders
-
创建一个支持缓存的时间提供器,但不是线程安全的。
- nextPowerOfTwo(int) - 类中的静态方法 cn.wjybxx.base.MathCommon
-
计算num最接近下一个整2次幂;如果自身是2的整次幂,则会返回自身
- nextPowerOfTwo(long) - 类中的静态方法 cn.wjybxx.base.MathCommon
-
计算num最接近下一个整2次幂;如果自身是2的整次幂,则会返回自身
- NoLogRequiredException - cn.wjybxx.base.ex中的接口
-
如果一个异常实现了该接口,那么当其被捕获时,我们并不为其自动记录日志。
- nullToArrayList(List<E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
如果列表为Null,则返回空数组列表
- nullToDef(V, V) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
-
如果给定参数为null,则返回给定的默认值,否则返回值本身
Objects.requireNonNullElse(Object, Object)不允许def为null - nullToEmptyList(List<E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
如果列表为Null,则返回空列表
O
- ObjectPool<T> - cn.wjybxx.base.pool中的接口
-
简单对象池 (其实acquire和release是比较合适的命名; rent和return通常也是一对)
- ObjectUtils - cn.wjybxx.base中的类
-
一些基础的扩展
- ObjectUtils() - 类的构造器 cn.wjybxx.base.ObjectUtils
- of(E) - 类中的静态方法 cn.wjybxx.base.collection.RefIndexedElement
- of(ZoneOffset) - 类中的静态方法 cn.wjybxx.base.time.TimeHelper
- offer(E) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- offer(E) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- offer(T) - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- offerFirst(E) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- offerFirst(E) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- offerLast(E) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- offerLast(E) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- OptionalBool - cn.wjybxx.base中的枚举类
-
使用
Boolean类型容易忘记检查null - orElse(boolean) - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- orElseThrow() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
P
- parallelStream() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- parallelStream() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- parseTimeMillis(String) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
解析为毫秒时间戳
- parseTimeMillis(String, DateTimeFormatter) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
解析为毫秒时间戳
- peek() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- peek() - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- peek() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- peekFirst() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- peekFirst() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- peekLast() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- peekLast() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- poll() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- poll() - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- poll() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- pollFirst() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- pollFirst() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- pollLast() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- pollLast() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- pop() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- pop() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- Preconditions - cn.wjybxx.base中的类
-
这里包含了一些我们常用的前置条件检查,没有做太多的优化。
- Preconditions() - 类的构造器 cn.wjybxx.base.Preconditions
- Priority - cn.wjybxx.base.annotation中的批注接口
-
用于配置目标的优先级
- priorityChanged(T) - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- priorityChanged(T) - 接口中的方法 cn.wjybxx.base.collection.IndexedPriorityQueue
-
队列中节点元素的优先级发生变化时,将通过该方法通知队列调整
- PropertiesUtils - cn.wjybxx.base中的类
- PropertiesUtils() - 类的构造器 cn.wjybxx.base.PropertiesUtils
- push(E) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- push(E) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
R
- ReadOnlyAfterInit - cn.wjybxx.base.annotation中的批注接口
-
用于标识一个只读在完成初始化以后是只读的,即:安全发布后可用于多线程访问
- realSize() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
获取list的真实大小 如果当前正在迭代,则可能产生遍历统计的情况,要注意开销问题。
- realSize() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- recoveryInterrupted() - 类中的静态方法 cn.wjybxx.base.ThreadUtils
-
恢复中断
- recoveryInterrupted(Throwable) - 类中的静态方法 cn.wjybxx.base.ThreadUtils
-
如果是中断异常,则恢复线程中断状态。
- RefIndexedElement<E> - cn.wjybxx.base.collection中的类
- Regulator - cn.wjybxx.base.time中的类
-
频率调节器 - 可理解为轮询式Timer调度器。
- remove() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- remove() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- remove(Object) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- remove(Object) - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- remove(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
根据equals相等删除元素
- remove(Object) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- removeAll(ArrayList<E>, Collection<? extends E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- removeAll(Collection<?>) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- removeAll(Collection<?>) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- removeAt(int) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
删除给定位置的元素
- removeAt(int) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- removeAt(List<E>, int, boolean) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
删除指定位置的元素,可以选择是否保持列表中元素的顺序,当不需要保持顺序时可以对删除性能进行优化 注意:应当小心使用该特性,能够使用该特性的场景不多,应当慎之又慎。
- removeFirst() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- removeFirst() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- removeFirstMatch(Collection<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
移除集合中第一个匹配的元素
- removeFirstMatch(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
移除list中第一个匹配的元素 -- 最好是数组列表
- removeFirstN(List<?>, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
删除list的前n个元素
- removeFirstOccurrence(Object) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- removeFirstOccurrence(Object) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- removeIf(Predicate<? super E>) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- removeIf(Predicate<? super E>) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- removeLast() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- removeLast() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- removeLastMatch(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
移除List中最后一个匹配的元素 -- 最好是数组列表
- removeLastN(List<?>, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
删除list的后n个元素
- removeLastOccurrence(Object) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- removeLastOccurrence(Object) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- removeRef(Object) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
根据引用相等删除元素
- removeRef(Collection<?>, Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
使用“==”删除第一个匹配的元素
- removeRef(List<?>, Object) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
使用“==”删除对象
- removeRef(List<?>, Object, boolean) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
使用“==”删除对象
- removeTyped(T) - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- removeTyped(T) - 接口中的方法 cn.wjybxx.base.collection.IndexedPriorityQueue
- rent() - 类中的方法 cn.wjybxx.base.io.LocalByteArrayPool
- rent() - 类中的方法 cn.wjybxx.base.io.LocalStringBuilderPool
- rent() - 类中的方法 cn.wjybxx.base.io.StringBuilderPool
- rent() - 类中的方法 cn.wjybxx.base.pool.DefaultObjectPool
- rent() - 接口中的方法 cn.wjybxx.base.pool.ObjectPool
-
从池中租借一个对象
- rent() - 类中的方法 cn.wjybxx.base.pool.SingleObjectPool
- rent(int) - 接口中的方法 cn.wjybxx.base.io.ByteArrayPool
-
注意:返回的字节数组可能大于期望的数组长度
- reset() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
重置停表 注意:为了安全起见,请要么在代码的开始重置,要么在finally块中重置。
- reset(T) - 接口中的方法 cn.wjybxx.base.pool.ResetPolicy
- ResetPolicy<T> - cn.wjybxx.base.pool中的接口
-
对象池对象的重置策略。
- restart() - 类中的方法 cn.wjybxx.base.time.StopWatch
- restart() - 接口中的方法 cn.wjybxx.base.time.Timepiece
-
重新启动计时 - 累积时间和deltaTime都清零。
- restart(long) - 类中的方法 cn.wjybxx.base.time.Regulator
-
重新启动调节器 (没有单独的start方法,因为逻辑无区别)
- restart(long) - 接口中的方法 cn.wjybxx.base.time.Timepiece
-
重新启动计时器 - 累积时间设定为给定值,deltaTime设定为0。
- restart(long, long) - 接口中的方法 cn.wjybxx.base.time.Timepiece
-
重新启动计时器
- resume() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
恢复计时
- retainAll(Collection<?>) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- retainAll(Collection<?>) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- rethrow(Throwable) - 类中的静态方法 cn.wjybxx.base.ex.ExceptionUtils
-
抛出原始异常,消除编译时警告
- returnAll(Collection<? extends T>) - 类中的方法 cn.wjybxx.base.pool.DefaultObjectPool
- returnAll(Collection<? extends T>) - 接口中的方法 cn.wjybxx.base.pool.ObjectPool
-
将指定的对象放入池中 - 重置策略却决于
ResetPolicy。 - returnAll(Collection<? extends T>) - 类中的方法 cn.wjybxx.base.pool.SingleObjectPool
- returnOne(byte[]) - 接口中的方法 cn.wjybxx.base.io.ByteArrayPool
-
归还数组到池,默认情况下不清理数据
- returnOne(byte[]) - 类中的方法 cn.wjybxx.base.io.LocalByteArrayPool
- returnOne(byte[], boolean) - 接口中的方法 cn.wjybxx.base.io.ByteArrayPool
-
归还数组到池
- returnOne(StringBuilder) - 类中的方法 cn.wjybxx.base.io.LocalStringBuilderPool
- returnOne(StringBuilder) - 类中的方法 cn.wjybxx.base.io.StringBuilderPool
- returnOne(T) - 类中的方法 cn.wjybxx.base.pool.DefaultObjectPool
- returnOne(T) - 接口中的方法 cn.wjybxx.base.pool.ObjectPool
-
将指定的对象放入池中 - 重置策略却决于
ResetPolicy。 - returnOne(T) - 类中的方法 cn.wjybxx.base.pool.SingleObjectPool
- reversed() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
S
- SEC - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
一秒的毫秒数
- SECONDS_PER_DAY - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- SECONDS_PER_HOUR - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- SECONDS_PER_MINUTE - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- SECONDS_PER_WEEK - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
- set(int, E) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
将给定元素赋值到给定位置
- set(int, E) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- setCapacity(int, DequeOverflowBehavior) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- setContext(Object) - 类中的方法 cn.wjybxx.base.time.Regulator
- setDeltaTime(long) - 接口中的方法 cn.wjybxx.base.time.Timepiece
-
在不修改当前时间戳的情况下修改deltaTime (仅仅用在补偿的时候,慎用)
- setFirstDelay(long) - 类中的方法 cn.wjybxx.base.time.Regulator
- setId(Integer) - 类中的方法 cn.wjybxx.base.Constant.Builder
-
id通常由管理常量的常量池分配
- setPeriod(long) - 类中的方法 cn.wjybxx.base.time.Regulator
- setTime(long) - 接口中的方法 cn.wjybxx.base.time.CachedTimeProvider
- setTime(long) - 接口中的方法 cn.wjybxx.base.time.Timepiece
-
设置当前时间
- SingleObjectPool<T> - cn.wjybxx.base.pool中的类
-
只缓存单个对象对象池 相比直接使用共享对象,使用该缓存池可避免递归调用带来的bug
- SingleObjectPool(Supplier<? extends T>, ResetPolicy<? super T>) - 类的构造器 cn.wjybxx.base.pool.SingleObjectPool
- size() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- size() - 类中的方法 cn.wjybxx.base.collection.DefaultIndexedPriorityQueue
- size() - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
-
获取list的当前大小 注意:迭代期间删除的元素并不会导致size变化,因此该值是一个不准确的值。
- size() - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- size() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- size() - 类中的方法 cn.wjybxx.base.ConstantPool
- size() - 接口中的方法 cn.wjybxx.base.EnumLiteMap
- sleepQuietly(long) - 类中的静态方法 cn.wjybxx.base.ThreadUtils
-
安静地睡眠一会儿
- SmallArrayList<E> - cn.wjybxx.base.collection中的类
-
用于数据量较少的情况下,避免较大的初始容量
- SmallArrayList() - 类的构造器 cn.wjybxx.base.collection.SmallArrayList
- SmallArrayList(Collection<? extends E>) - 类的构造器 cn.wjybxx.base.collection.SmallArrayList
- sort(Comparator<? super E>) - 接口中的方法 cn.wjybxx.base.collection.DelayedCompressList
- sort(Comparator<? super E>) - 类中的方法 cn.wjybxx.base.collection.DelayedCompressListImpl
- sortedValues() - 接口中的方法 cn.wjybxx.base.EnumLiteMap
-
获取有序的所有枚举实例(根据number排序)
- SourceFileRef - cn.wjybxx.base.annotation中的批注接口
-
用于标注关联的源文件 保留策略修改为Runtime,我们可以在运行时查找关联的类,从而进行动态绑定
- spliterator() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- spliterator() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- StableName - cn.wjybxx.base.annotation中的批注接口
-
用于标识方法或字段等的名字是稳定的(或应该保持稳定) 通常是为生成的代码服务
- start() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
开始计时。
- START_OF_DAY - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
一天的开始:午夜 00:00:00 The time of midnight at the start of the day, '00:00'.
- Stateful - cn.wjybxx.base.annotation中的批注接口
-
用于标记一个类是有状态的
- Stateless - cn.wjybxx.base.annotation中的批注接口
-
用于标记一个类是无状态的,也就是线程安全的
- stepElapsed() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
获取当前步骤已消耗的时间
- stepElapsed(TimeUnit) - 类中的方法 cn.wjybxx.base.time.StopWatch
-
获取当前步骤已消耗的时间
- stop() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
停止计时
- stop(String) - 类中的方法 cn.wjybxx.base.time.StopWatch
-
停止计时。
- StopWatch - cn.wjybxx.base.time中的类
-
停表 -- 用于监测每一步的耗时和总耗时。
- StopWatch(String) - 类的构造器 cn.wjybxx.base.time.StopWatch
- stream() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- stream() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- streamOf(Iterable<T>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
Converts interable to a non-parallel stream.
- streamOf(Iterator<T>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
Converts iterator to a stream.
- StringBuilderPool - cn.wjybxx.base.io中的类
- StringBuilderPool(int, int) - 类的构造器 cn.wjybxx.base.io.StringBuilderPool
- StringBuilderWriter - cn.wjybxx.base.io中的类
-
修改自
StringWriter - StringBuilderWriter() - 类的构造器 cn.wjybxx.base.io.StringBuilderWriter
- StringBuilderWriter(int) - 类的构造器 cn.wjybxx.base.io.StringBuilderWriter
- StringBuilderWriter(StringBuilder) - 类的构造器 cn.wjybxx.base.io.StringBuilderWriter
- suspend() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
暂停计时
- SYSTEM - 类中的静态变量 cn.wjybxx.base.time.TimeHelper
-
系统时区对应的辅助类实例
- systemMillisProvider() - 类中的静态方法 cn.wjybxx.base.time.TimeProviders
-
获取[毫秒]实时时间提供器
- systemNanosProvider() - 类中的静态方法 cn.wjybxx.base.time.TimeProviders
-
获取[纳秒]实时时间提供器
T
- ThreadUtils - cn.wjybxx.base中的类
- ThreadUtils() - 类的构造器 cn.wjybxx.base.ThreadUtils
- THROW_EXCEPTION - 枚举类 中的枚举常量 cn.wjybxx.base.collection.DequeOverflowBehavior
-
抛出异常
- throwUnchecked(T) - 类中的静态方法 cn.wjybxx.base.ex.ExceptionUtils
-
如果异常是非受检异常,则直接抛出,否则返回异常对象。
- TimeHelper - cn.wjybxx.base.time中的类
-
主要封装与时区相关的方法
- Timepiece - cn.wjybxx.base.time中的接口
-
增量式计时器,需要外部每帧调用
Timepiece.update(long)累积时间 - TimeProvider - cn.wjybxx.base.time中的接口
-
时间提供者,用户外部获取时间 线程安全性取决于具体实现
- TimeProviders - cn.wjybxx.base.time中的类
- TimeUtils - cn.wjybxx.base.time中的类
-
时间工具类 -- 以毫秒为基本单位。
- toArray() - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- toArray() - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- toArray(IntFunction<T[]>) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- toArray(IntFunction<T[]>) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- toArray(T[]) - 类中的方法 cn.wjybxx.base.collection.BoundedArrayDeque
- toArray(T[]) - 类中的方法 cn.wjybxx.base.collection.EmptyDequeue
- toArrayList(E[]) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toArrayList(E[], int, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toBitSet(Collection<T>) - 类中的静态方法 cn.wjybxx.base.EnumUtils
- toBitSet(T...) - 类中的静态方法 cn.wjybxx.base.EnumUtils
- toBoolean(String, boolean) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- toCase(String) - 枚举类中的方法 cn.wjybxx.base.CaseMode
- toDateTime(long) - 类中的方法 cn.wjybxx.base.time.TimeUtils
- toEpochMillis(LocalDateTime) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
将
LocalDateTime转换为时区无关的毫秒时间戳。 - toEpochMillis(LocalDateTime) - 类中的静态方法 cn.wjybxx.base.time.TimeUtils
- toImmutableLinkedHashMap(Map<K, V>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
转换为不可变的
LinkedHashMap,通常用于需要保留Key的顺序的场景 - toImmutableLinkedHashSet(Collection<E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
用于需要保持元素顺序的场景
- toImmutableList(Collection<E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toImmutableList(Collection<E>, Comparator<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toImmutableMap(Map<K, V>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toImmutableSet(Collection<E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toList(E[]) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toList(E[], int, int) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
- toLocalDateTime(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
将毫秒时间转换为
LocalDateTime - toLocalDateTimeIgnoreMs(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
将毫秒时间转换为
LocalDateTime,并忽略毫秒。 - toLocalEpochDay(long) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
计算在本地时区下的纪元天数
- toMap(Properties) - 类中的静态方法 cn.wjybxx.base.PropertiesUtils
- toMillis(long, long) - 类中的静态方法 cn.wjybxx.base.time.TimeUtils
-
将秒时间和毫秒时间合并为毫秒时间
- toMillisOfDay(LocalTime) - 类中的静态方法 cn.wjybxx.base.time.TimeUtils
- toSecondOfDay(LocalTime) - 类中的静态方法 cn.wjybxx.base.time.TimeUtils
- toString() - 类中的方法 cn.wjybxx.base.AbstractConstant
- toString() - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- toString() - 枚举类中的方法 cn.wjybxx.base.OptionalBool
- toString() - 类中的方法 cn.wjybxx.base.time.StopWatch
-
格式: StopWatch[name={name}ms][a={a}ms,b={b}ms...] 1.
- toString(Object, String) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- toString(LocalDate) - 类中的静态方法 cn.wjybxx.base.time.TimeHelper
-
固定格式: yyyy-MM-dd
- toString(LocalDateTime) - 类中的方法 cn.wjybxx.base.time.TimeHelper
-
组合下来4中格式: yyyy-MM-ddTHH:mm:ssZ yyyy-MM-ddTHH:mm:ss.SSSZ yyyy-MM-ddTHH:mm:ss±HH:mm yyyy-MM-ddTHH:mm:ss.SSS±HH:mm
- toString(LocalTime) - 类中的静态方法 cn.wjybxx.base.time.TimeHelper
-
两种格式 HH:mm:ss HH:mm:ss.SSS 毫秒数不为0时
- toString(ZoneOffset) - 类中的静态方法 cn.wjybxx.base.time.TimeHelper
-
两种格式 Z ±HH:mm
- toStringIfNotNull(Object) - 类中的静态方法 cn.wjybxx.base.ObjectUtils
- TRUE - 枚举类 中的枚举常量 cn.wjybxx.base.OptionalBool
- TypeParameterFinder - cn.wjybxx.base.reflect中的类
-
泛型参数具体类型查找器。
- TypeParameterFinder() - 类的构造器 cn.wjybxx.base.reflect.TypeParameterFinder
- TypeParameterMatcher - cn.wjybxx.base.reflect中的类
-
类型参数匹配器
- TypeParameterMatcher() - 类的构造器 cn.wjybxx.base.reflect.TypeParameterMatcher
U
- union(List<E>, List<? extends E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
连接列表
- union(List<E>, List<? extends E>, List<E>...) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
连接多个列表
- unorderedRemoveIf(List<E>, Predicate<? super E>) - 类中的静态方法 cn.wjybxx.base.CollectionUtils
-
删除满足条件的元素,且不保持列表中元素的顺序 -- 慎用该方法。
- update(long) - 接口中的方法 cn.wjybxx.base.time.Timepiece
-
累加时间
- UPPER_CASE - 枚举类 中的枚举常量 cn.wjybxx.base.CaseMode
V
- value() - 批注接口 中的元素 cn.wjybxx.base.annotation.Alias
- value() - 批注接口 中的元素 cn.wjybxx.base.annotation.Priority
-
权重值
- value() - 批注接口 中的元素 cn.wjybxx.base.annotation.SourceFileRef
- valueOf(boolean) - 枚举类中的静态方法 cn.wjybxx.base.OptionalBool
-
返回带有指定名称的该类的枚举常量。
- valueOf(Boolean) - 枚举类中的静态方法 cn.wjybxx.base.OptionalBool
-
返回带有指定名称的该类的枚举常量。
- valueOf(String) - 枚举类中的静态方法 cn.wjybxx.base.CaseMode
-
返回带有指定名称的该类的枚举常量。
- valueOf(String) - 枚举类中的静态方法 cn.wjybxx.base.collection.DequeOverflowBehavior
-
返回带有指定名称的该类的枚举常量。
- valueOf(String) - 类中的方法 cn.wjybxx.base.ConstantPool
-
获取给定名字对应的常量。
- valueOf(String) - 枚举类中的静态方法 cn.wjybxx.base.OptionalBool
-
返回带有指定名称的该类的枚举常量。
- values() - 枚举类中的静态方法 cn.wjybxx.base.CaseMode
-
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
- values() - 枚举类中的静态方法 cn.wjybxx.base.collection.DequeOverflowBehavior
-
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
- values() - 类中的方法 cn.wjybxx.base.ConstantMap
- values() - 类中的方法 cn.wjybxx.base.ConstantPool
-
注意: 1.该操作是个高开销的操作。
- values() - 接口中的方法 cn.wjybxx.base.EnumLiteMap
-
获取映射的所有枚举实例(声明序)。
- values() - 枚举类中的静态方法 cn.wjybxx.base.OptionalBool
-
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
- VisibleForTesting - cn.wjybxx.base.annotation中的批注接口
-
用于表述某个元素的开放权限仅用于测试
W
- WEEK - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
一周的毫秒数
- wjybxx.base - 模块 wjybxx.base
-
可以被个人所有开源项目依赖的的基础模块
- wrapComparator(Comparator<? super E>) - 类中的静态方法 cn.wjybxx.base.collection.RefIndexedElement
- write(char[], int, int) - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- write(int) - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- write(String) - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
- write(String, int, int) - 类中的方法 cn.wjybxx.base.io.StringBuilderWriter
Y
- YYYY_MM_DD - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
年月日的格式化器
Z
- ZONE_OFFSET_CST - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
中国时区
- ZONE_OFFSET_SYSTEM - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
系统时区
- ZONE_OFFSET_UTC - 类中的静态变量 cn.wjybxx.base.time.TimeUtils
-
UTC时区
一
- 一些技巧 - 类 cn.wjybxx.base.ConstantPool中的搜索标记
- 节
使
- 使用方式 - 接口 cn.wjybxx.base.collection.DelayedCompressList中的搜索标记
- 节
队
- 队列 OR 栈 - 类 cn.wjybxx.base.pool.DefaultObjectPool中的搜索标记
- 节
常量字段值|所有程序包|所有类和接口|序列化表格