类 StringPool

java.lang.Object
com.alibaba.nacos.core.utils.StringPool

public class StringPool extends Object
StringPool,aim to reduce memory allocation.
版本:
$Id: StringPool.java, v 0.1 2020年11月12日 3:05 PM liuzunfei Exp $
作者:
liuzunfei
  • 构造器详细资料

    • StringPool

      public StringPool()
  • 方法详细资料

    • get

      public static String get(String key)
      get singleton string value from the pool.
      参数:
      key - key string to be pooled.
      返回:
      value after pooled.
    • size

      public static long size()
    • remove

      public static void remove(String key)