@Test public void testDoNotLimitShowLength() { FormatterConfig config = new FormatterConfig(); assertFalse(config.willLimitShowLength()); config.setShownLength(1); assertTrue(config.willLimitShowLength()); config.doNotLimitShowLength(); assertFalse(config.willLimitShowLength()); }
public FormatterConfig doNotLimitShowLength() { this.shownLength = Integer.MAX_VALUE; return this; }
FormatterConfig { public FormatterConfig doNotLimitShowLength() { this.shownLength = Integer.MAX_VALUE; return this; } }
FormatterConfig { public FormatterConfig doNotLimitShowLength() { this.shownLength = Integer.MAX_VALUE; return this; } FormatterConfig();  FormatterConfig(FormatterConfig other); }
FormatterConfig { public FormatterConfig doNotLimitShowLength() { this.shownLength = Integer.MAX_VALUE; return this; } FormatterConfig();  FormatterConfig(FormatterConfig other); boolean willPrintTimestamps(); FormatterConfig setPrintTimestamps(boolean printTimestamps); int getShownLength(); boolean willLimitShowLength(); FormatterConfig setShownLength(int shownLength); FormatterConfig doNotLimitShowLength(); Supplier<DateFormat> getDateFormatSupplier(); FormatterConfig setDateFormatSupplier(Supplier<DateFormat> dateFormatSupplier); }
FormatterConfig { public FormatterConfig doNotLimitShowLength() { this.shownLength = Integer.MAX_VALUE; return this; } FormatterConfig();  FormatterConfig(FormatterConfig other); boolean willPrintTimestamps(); FormatterConfig setPrintTimestamps(boolean printTimestamps); int getShownLength(); boolean willLimitShowLength(); FormatterConfig setShownLength(int shownLength); FormatterConfig doNotLimitShowLength(); Supplier<DateFormat> getDateFormatSupplier(); FormatterConfig setDateFormatSupplier(Supplier<DateFormat> dateFormatSupplier);  }