/** * Resets the fields responsible for the line breaks and indenting. * Must be invoked after changing the {@link #spaces} value. */ private void resetIndent() { setArrayStart("{" + System.lineSeparator() + spacer(spaces)); setArraySeparator("," + System.lineSeparator() + spacer(spaces)); setArrayEnd(System.lineSeparator() + spacer(spaces - INDENT) + "}"); setContentStart("[" + System.lineSeparator() + spacer(spaces)); setFieldSeparator("," + System.lineSeparator() + spacer(spaces)); setContentEnd(System.lineSeparator() + spacer(spaces - INDENT) + "]"); }
/** * Resets the fields responsible for the line breaks and indenting. * Must be invoked after changing the {@link #spaces} value. */ private void resetIndent() { setArrayStart("{" + System.lineSeparator() + spacer(spaces)); setArraySeparator("," + System.lineSeparator() + spacer(spaces)); setArrayEnd(System.lineSeparator() + spacer(spaces - INDENT) + "}"); setContentStart("[" + System.lineSeparator() + spacer(spaces)); setFieldSeparator("," + System.lineSeparator() + spacer(spaces)); setContentEnd(System.lineSeparator() + spacer(spaces - INDENT) + "]"); }
/** * Resets the fields responsible for the line breaks and indenting. * Must be invoked after changing the {@link #spaces} value. */ private void resetIndent() { setArrayStart("{" + System.lineSeparator() + spacer(spaces)); setArraySeparator("," + System.lineSeparator() + spacer(spaces)); setArrayEnd(System.lineSeparator() + spacer(spaces - INDENT) + "}"); setContentStart("[" + System.lineSeparator() + spacer(spaces)); setFieldSeparator("," + System.lineSeparator() + spacer(spaces)); setContentEnd(System.lineSeparator() + spacer(spaces - INDENT) + "]"); }
/** * Resets the fields responsible for the line breaks and indenting. * Must be invoked after changing the {@link #spaces} value. */ private void resetIndent() { setArrayStart("{" + LINE_SEPARATOR + spacer(spaces)); setArraySeparator("," + LINE_SEPARATOR + spacer(spaces)); setArrayEnd(LINE_SEPARATOR + spacer(spaces - INDENT) + "}"); setContentStart("[" + LINE_SEPARATOR + spacer(spaces)); setFieldSeparator("," + LINE_SEPARATOR + spacer(spaces)); setContentEnd(LINE_SEPARATOR + spacer(spaces - INDENT) + "]"); }