Package org.apache.juneau.marshall.json
Record Class JsonTokenReader.Settings
java.lang.Object
java.lang.Record
org.apache.juneau.marshall.json.JsonTokenReader.Settings
- Record Components:
trimStrings- Iftrue , leading/trailing whitespace is trimmed fromTokenType.VALUE_STRINGandTokenType.FIELD_NAMEvalues returned by the cursor.
- Enclosing class:
- JsonTokenReader
Cursor-level settings honored by
JsonTokenReader.
Pipe-level concerns (auto-close, unbuffered, charsets) are configured on the
ParserPipe itself before construction; only behaviors that the cursor applies to
already-decoded tokens live here.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonTokenReader.SettingsDefault canonical setting: no string trimming. -
Constructor Summary
ConstructorsConstructorDescriptionSettings(boolean trimStrings) Creates an instance of aSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetrimStringsrecord component.
-
Field Details
-
DEFAULT
Default canonical setting: no string trimming.
-
-
Constructor Details
-
Settings
Creates an instance of aSettingsrecord class.- Parameters:
trimStrings- the value for thetrimStringsrecord 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
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. All components in this record class are compared with '=='. -
trimStrings
Returns the value of thetrimStringsrecord component.- Returns:
- the value of the
trimStringsrecord component
-