Package org.loxlylabs.nestedtext
Record Class DumpOptions
java.lang.Object
java.lang.Record
org.loxlylabs.nestedtext.DumpOptions
- Record Components:
eol- the line separator string to use when dumping data.indentAmount- the number of spaces for indentation (must be positive).useReflection-trueto enable reflection (default),falseto disable.
Options to use when dumping an Object to Minimal NestedText
-
Constructor Summary
ConstructorsConstructorDescriptionDumpOptions(String eol, int indentAmount, boolean useReflection) Creates an instance of aDumpOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioneol()Returns the value of theeolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theindentAmountrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseReflectionrecord component.
-
Constructor Details
-
DumpOptions
Creates an instance of aDumpOptionsrecord class.- Parameters:
eol- the value for theeolrecord componentindentAmount- the value for theindentAmountrecord componentuseReflection- the value for theuseReflectionrecord component
-
-
Method Details
-
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 '=='. -
eol
Returns the value of theeolrecord component.- Returns:
- the value of the
eolrecord component
-
indentAmount
public int indentAmount()Returns the value of theindentAmountrecord component.- Returns:
- the value of the
indentAmountrecord component
-
useReflection
public boolean useReflection()Returns the value of theuseReflectionrecord component.- Returns:
- the value of the
useReflectionrecord component
-