protected DefaultPrettyPrinter _withSpaces(boolean state) { if (_spacesInObjectEntries == state) { return this; } DefaultPrettyPrinter pp = new DefaultPrettyPrinter(this); pp._spacesInObjectEntries = state; return pp; }
/** @since 2.3 */ public DefaultPrettyPrinter withObjectIndenter(Indenter i) { if (i == null) { i = NopIndenter.instance; } if (_objectIndenter == i) { return this; } DefaultPrettyPrinter pp = new DefaultPrettyPrinter(this); pp._objectIndenter = i; return pp; }