public class FunctionPool extends Object
Modifier and Type | Field and Description |
---|---|
static BiFunction<char[],Boolean,String> |
STRING_CREATOR_JDK8
通过
String(char[] value, boolean share) 这个内部构造生成一个Lambda函数此函数通过传入char[],实现zero-copy的String创建,效率很高。 |
Constructor and Description |
---|
FunctionPool() |
Modifier and Type | Method and Description |
---|---|
static String |
createString(char[] value)
通过
String(char[] value, boolean share) 这个内部构造创建String对象。 |
public static final BiFunction<char[],Boolean,String> STRING_CREATOR_JDK8
String(char[] value, boolean share)
这个内部构造生成一个Lambda函数public static String createString(char[] value)
String(char[] value, boolean share)
这个内部构造创建String对象。value
- char[]值,注意这个数组不可修改!!Copyright © 2025. All rights reserved.