public class InternUtil extends Object
Constructor and Description |
---|
InternUtil() |
Modifier and Type | Method and Description |
---|---|
static Interner<String> |
createJdkInterner()
创建JDK默认实现的字符串规范化器
|
static Interner<String> |
createStringInterner(boolean isWeak)
创建字符串规范化器
|
static <T> Interner<T> |
createWeakInterner()
创建WeakHshMap实现的字符串规范化器
|
Copyright © 2024. All rights reserved.