/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ToStringStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ToStringStyler styler) { Assert.notNull(obj, "The object to be styled must not be null"); this.object = obj; this.styler = (styler != null ? styler : DEFAULT_TO_STRING_STYLER); this.styler.styleStart(this.buffer, this.object); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ToStringStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ToStringStyler styler) { Assert.notNull(obj, "The object to be styled must not be null"); this.object = obj; this.styler = (styler != null ? styler : DEFAULT_TO_STRING_STYLER); this.styler.styleStart(this.buffer, this.object); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ToStringStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, ToStringStyler styler) { Assert.notNull(obj, "The object to be styled must not be null"); this.object = obj; this.styler = (styler != null ? styler : DEFAULT_TO_STRING_STYLER); this.styler.styleStart(this.buffer, this.object); }
/** * Create a ToStringBuilder for this object with the provided style. * @param obj the object to be stringified * @param styler the ToStringStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, ToStringStyler styler) { Assert.notNull(obj, "The object to be styled is required"); this.object = obj; this.styler = (styler != null ? styler : DEFAULT_TO_STRING_STYLER); this.styler.styleStart(this.buffer, this.object); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ToStringStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ToStringStyler styler) { Assert.notNull(obj, "The object to be styled must not be null"); this.object = obj; this.styler = (styler != null ? styler : DEFAULT_TO_STRING_STYLER); this.styler.styleStart(this.buffer, this.object); }
/** * Create a ToStringCreator for the given object, using the provided style. * @param obj the object to be stringified * @param styler the ToStringStyler encapsulating pretty-print instructions */ public ToStringCreator(Object obj, @Nullable ToStringStyler styler) { Assert.notNull(obj, "The object to be styled must not be null"); this.object = obj; this.styler = (styler != null ? styler : DEFAULT_TO_STRING_STYLER); this.styler.styleStart(this.buffer, this.object); }