Record Class HeaderFormatter.HeaderConfig
java.lang.Object
java.lang.Record
dev.toonformat.jtoon.encoder.HeaderFormatter.HeaderConfig
- Record Components:
length- Array or table lengthkey- Optional key prefixfields- Optional field names for tabular formatdelimiter- The delimiter being usedlengthMarker- Whether to include # marker before length
- Enclosing class:
HeaderFormatter
-
Constructor Summary
ConstructorsConstructorDescriptionHeaderConfig(int length, String key, List<String> fields, String delimiter, boolean lengthMarker) Creates an instance of aHeaderConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedelimiterrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.intlength()Returns the value of thelengthrecord component.booleanReturns the value of thelengthMarkerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HeaderConfig
public HeaderConfig(int length, String key, List<String> fields, String delimiter, boolean lengthMarker) Creates an instance of aHeaderConfigrecord class.- Parameters:
length- the value for thelengthrecord componentkey- the value for thekeyrecord componentfields- the value for thefieldsrecord componentdelimiter- the value for thedelimiterrecord componentlengthMarker- the value for thelengthMarkerrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
length
-
key
-
fields
-
delimiter
-
lengthMarker
public boolean lengthMarker()Returns the value of thelengthMarkerrecord component.- Returns:
- the value of the
lengthMarkerrecord component
-