/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ValueStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ValueStyler styler) { this(obj, new DefaultToStringStyler(styler != null ? styler : StylerUtils.DEFAULT_VALUE_STYLER)); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ValueStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ValueStyler styler) { this(obj, new DefaultToStringStyler(styler != null ? styler : StylerUtils.DEFAULT_VALUE_STYLER)); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ValueStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, ValueStyler styler) { this(obj, new DefaultToStringStyler(styler != null ? styler : StylerUtils.DEFAULT_VALUE_STYLER)); }
/** * Create a ToStringBuilder for this object with the provided style. * @param obj the object to be stringified * @param styler the ValueStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, ValueStyler styler) { this(obj, new DefaultToStringStyler(styler != null ? styler : StylerUtils.DEFAULT_VALUE_STYLER)); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ValueStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ValueStyler styler) { this(obj, new DefaultToStringStyler(styler != null ? styler : StylerUtils.DEFAULT_VALUE_STYLER)); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ValueStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ValueStyler styler) { this(obj, new DefaultToStringStyler(styler != null ? styler : StylerUtils.DEFAULT_VALUE_STYLER)); }