public static StandardToStringStyle ourStyle() { StandardToStringStyle standardToStringStyle = new StandardToStringStyle(); standardToStringStyle.setUseClassName(false); standardToStringStyle.setUseIdentityHashCode(false); standardToStringStyle.setContentStart("["); standardToStringStyle.setFieldSeparator(System.lineSeparator() + " "); standardToStringStyle.setFieldSeparatorAtStart(true); standardToStringStyle.setContentEnd(System.lineSeparator() + "]"); return standardToStringStyle; }
/** * Configurates debuging styles. */ public static void init() { StandardToStringStyle tss = new StandardToStringStyle(); tss.setUseShortClassName(true); tss.setContentStart("("); tss.setContentEnd(")"); tss.setUseIdentityHashCode(false); ToStringBuilder.setDefaultStyle(tss); }
@Override public String toString() { final StandardToStringStyle style = new StandardToStringStyle(); style.setUseIdentityHashCode(false); return ReflectionToStringBuilder.toString(this, style); }
@Override public String toString() { return ReflectionToStringBuilder.toString(this, StandardToStringStyle.MULTI_LINE_STYLE); }