ToStringBuilderEx.java.svn-base 881 Bytes
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package jp.agentec.sinaburocast.common;

import org.apache.commons.lang.builder.StandardToStringStyle;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


public class ToStringBuilderEx extends ToStringBuilder {
	// LATER:arima 起動時に適切なタイミングで ToStringBuilder.setDefaultStyle() を呼ぶことさえできれば ToStringBuilderExは不要
	static {
		StandardToStringStyle style = new StandardToStringStyle();
		style.setUseIdentityHashCode(false);
		style.setUseShortClassName(true);
		setDefaultStyle(style);
	}

	public ToStringBuilderEx(Object object) {
		super(object);
	}

	public ToStringBuilderEx(Object object, ToStringStyle style) {
		super(object, style);
	}

	public ToStringBuilderEx(Object object, ToStringStyle style,
			StringBuffer buffer) {
		super(object, style, buffer);
	}

}