类的使用
cn.wjybxx.base.Constant.Builder
使用Constant.Builder的程序包
-
cn.wjybxx.base中Constant.Builder的使用
修饰符和类型方法说明Constant.Builder.setCacheIndex(int cacheIndex) 设置高速缓存索引 -- 该方法由ConstantPool调用设置常量的id - id通常由管理常量的常量池分配Constant.Builder.setRequireCacheIndex(boolean requireCacheIndex) 设置是否需要分配高速缓存索引参数类型为Constant.Builder的cn.wjybxx.base中的方法修饰符和类型方法说明ConstantFactory.newConstant(Constant.Builder builder) final TConstantPool.newInstance(Constant.Builder builder) 创建一个常量,如果已存在关联的常量,则抛出异常。参数类型为Constant.Builder的cn.wjybxx.base中的构造器