package jp.gr.java_conf.shiseissi.commonlib;

import java.lang.ref.SoftReference;

/**
 *
 * @author shisei
 */
public class ThreadLocalStringBuilder extends ThreadLocal<SoftReference<StringBuilder>> {
    public static final int DEFAULT_CAPACITY_SIZE = 256;

	@Override
	protected SoftReference<StringBuilder> initialValue() {
		return new SoftReference<StringBuilder>(new StringBuilder(DEFAULT_CAPACITY_SIZE));
	}
}
