java.lang.Object
swim.codec.OutputSettings
- All Implemented Interfaces:
Debug
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOutputSettings(String lineSeparator, boolean isPretty, boolean isStyled) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected OutputSettingsstatic final OutputSettingsReturnsOutputSettingsconfigured with the givenlineSeparator, pretty printing enabled ifisPrettyistrue, and styling enabled ifisStyledistrue.<T> Output<T>Writes a developer readable, debug-formatted string representation of this object tooutput.booleaninthashCode()final booleanisPretty()Returnstrueif output producers should pretty print their output, when possible.isPretty(boolean isPretty) Returns a copy of these settings with the givenisPrettyflag.final booleanisStyled()Returnstrueif output producers should style their output, when possible.isStyled(boolean isStyled) Returns a copy of these settings with the givenisStyledflag.final StringReturns the code point sequence used to separate lines of text.lineSeparator(String lineSeparator) Returns a copy of these settings with the givenlineSeparator.static final OutputSettingspretty()ReturnsOutputSettingsconfigured with the system line separator, pretty printing enabled, and styling disabled.static final OutputSettingsReturnsOutputSettingsconfigured with the system line separator, pretty printing enabled, and styling enabled.static final OutputSettingsstandard()ReturnsOutputSettingsconfigured with the system line separator, pretty printing disabled, and styling disabled.static final OutputSettingsstyled()ReturnsOutputSettingsconfigured with the system line separator, pretty printing disabled, and styling enabled.toString()
-
Field Details
-
lineSeparator
-
isPretty
protected final boolean isPretty -
isStyled
protected final boolean isStyled
-
-
Constructor Details
-
OutputSettings
-
-
Method Details
-
lineSeparator
Returns the code point sequence used to separate lines of text. Defaults to the operating system's line separator. -
lineSeparator
Returns a copy of these settings with the givenlineSeparator. -
isPretty
public final boolean isPretty()Returnstrueif output producers should pretty print their output, when possible. -
isPretty
Returns a copy of these settings with the givenisPrettyflag. -
isStyled
public final boolean isStyled()Returnstrueif output producers should style their output, when possible. -
isStyled
Returns a copy of these settings with the givenisStyledflag. -
copy
-
canEqual
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput. -
toString
-
standard
ReturnsOutputSettingsconfigured with the system line separator, pretty printing disabled, and styling disabled. -
pretty
ReturnsOutputSettingsconfigured with the system line separator, pretty printing enabled, and styling disabled. -
styled
ReturnsOutputSettingsconfigured with the system line separator, pretty printing disabled, and styling enabled. -
prettyStyled
ReturnsOutputSettingsconfigured with the system line separator, pretty printing enabled, and styling enabled. -
create
ReturnsOutputSettingsconfigured with the givenlineSeparator, pretty printing enabled ifisPrettyistrue, and styling enabled ifisStyledistrue.
-