Hello,

I find myself using the following pattern which I've placed in a class. I am
wondering if anyone else uses this kind of ToStringStyle and whether or not
it could be added as another ToStringStyle inner class.

/**
 * A ToStringStyle which uses a short class name and no hash code.
 */
public final class ShortPrefixToStringStyle extends ToStringStyle {
    public ShortPrefixToStringStyle() {
        this.setUseShortClassName(true);
        this.setUseIdentityHashCode(false);
    }
}

Gary

Reply via email to