Package app.babylon.table.io
Record Class WriteOptionsCsv
java.lang.Object
java.lang.Record
app.babylon.table.io.WriteOptionsCsv
public record WriteOptionsCsv(Charset charset, ToStringSettings toStringSettings, boolean includeHeaders, char separator, String lineSeparator)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWriteOptionsCsv(Charset charset, ToStringSettings toStringSettings, boolean includeHeaders, char separator, String lineSeparator) Creates an instance of aWriteOptionsCsvrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WriteOptionsCsv.Builderbuilder()charset()Returns the value of thecharsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeHeadersrecord component.Returns the value of thelineSeparatorrecord component.charReturns the value of theseparatorrecord component.static WriteOptionsCsvstandard()final StringtoString()Returns a string representation of this record class.Returns the value of thetoStringSettingsrecord component.
-
Field Details
-
DEFAULT_CHARSET
-
DEFAULT_SEPARATOR
public static final char DEFAULT_SEPARATOR- See Also:
-
DEFAULT_LINE_SEPARATOR
- See Also:
-
-
Constructor Details
-
WriteOptionsCsv
public WriteOptionsCsv(Charset charset, ToStringSettings toStringSettings, boolean includeHeaders, char separator, String lineSeparator) Creates an instance of aWriteOptionsCsvrecord class.- Parameters:
charset- the value for thecharsetrecord componenttoStringSettings- the value for thetoStringSettingsrecord componentincludeHeaders- the value for theincludeHeadersrecord componentseparator- the value for theseparatorrecord componentlineSeparator- the value for thelineSeparatorrecord component
-
-
Method Details
-
standard
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
charset
Returns the value of thecharsetrecord component.- Returns:
- the value of the
charsetrecord component
-
toStringSettings
Returns the value of thetoStringSettingsrecord component.- Returns:
- the value of the
toStringSettingsrecord component
-
includeHeaders
public boolean includeHeaders()Returns the value of theincludeHeadersrecord component.- Returns:
- the value of the
includeHeadersrecord component
-
separator
public char separator()Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component
-
lineSeparator
Returns the value of thelineSeparatorrecord component.- Returns:
- the value of the
lineSeparatorrecord component
-