Package org.forgerock.openig.text
Record Class Separator
java.lang.Object
java.lang.Record
org.forgerock.openig.text.Separator
- Record Components:
character- The character used to separate values.quote- The character used to quote string literals, or-1if none.escape- The character used to escape character literals, or-1if none.
A field separator specification, used to parse delimiter-separated values.
-
Constructor Summary
ConstructorsConstructorDescriptionSeparator(char character, int quote, int escape) Creates an instance of aSeparatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the value of thecharacterrecord component.final booleanIndicates whether some other object is "equal to" this one.intescape()Returns the value of theescaperecord component.final inthashCode()Returns a hash code value for this object.intquote()Returns the value of thequoterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared with '=='. -
character
public char character()Returns the value of thecharacterrecord component.- Returns:
- the value of the
characterrecord component
-
quote
public int quote()Returns the value of thequoterecord component.- Returns:
- the value of the
quoterecord component
-
escape
public int escape()Returns the value of theescaperecord component.- Returns:
- the value of the
escaperecord component
-