java.lang.Object
cn.wjybxx.base.Constant.Builder
- 封闭接口:
Constant
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract Constantbuild()int获取分配的高速缓存索引 -- -1表示未设置。getId()intgetName()booleansetCacheIndex(int cacheIndex) 设置高速缓存索引 -- 该方法由ConstantPool调用设置常量的id - id通常由管理常量的常量池分配setRequireCacheIndex(boolean requireCacheIndex) 设置是否需要分配高速缓存索引
-
构造器详细资料
-
Builder
-
-
方法详细资料
-
setId
设置常量的id - id通常由管理常量的常量池分配 -
getIdOrThrow
public int getIdOrThrow() -
getId
-
getName
-
getDeclaringPool
-
setCacheIndex
设置高速缓存索引 -- 该方法由ConstantPool调用 -
getCacheIndex
public int getCacheIndex()获取分配的高速缓存索引 -- -1表示未设置。 注意:ConstantPool仅仅分配index,而真正的实现在于常量的使用者。 -
isRequireCacheIndex
public boolean isRequireCacheIndex() -
setRequireCacheIndex
设置是否需要分配高速缓存索引 -
build
-