| 程序包 | 说明 |
|---|---|
| cn.weforward.common.sys | |
| cn.weforward.common.util |
| 限定符和类型 | 方法和说明 |
|---|---|
Iterator<WeakReference<GcCleanable>> |
GcCleaner.getCleanables() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
GcCleaner.add(GcCleanable c)
增加清理项
|
static boolean |
GcCleaner.register(GcCleanable cleanable)
注册到全局的Gc控制器
|
boolean |
GcCleaner.remove(GcCleanable c)
删除清理项
|
static boolean |
GcCleaner.unregister(GcCleanable cleanable)
移除在全局的Gc控制器的项
|
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Bytes.Pool
字节数组池化
|
class |
LruCache<K,V>
使用LruHashMap及WeakReference支持单例的缓存管理器
|
class |
LruHashMap<K,V>
Hash表+LRU,用于支持缓存管理
|
class |
RingBuffer<T>
环型缓冲区(FIFO),也适合做缓存池
|
class |
StringBuilderPool
StringBuilder池化
|
class |
StringPool
字串共享池(一般用于解析格式串中复用字串减少内存消耗)
|
Copyright © 2021. All rights reserved.