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-1
if none.escape
- The character used to escape character literals, or-1
if none.
A field separator specification, used to parse delimiter-separated values.
-
Constructor Summary
ConstructorDescriptionSeparator
(char character, int quote, int escape) Creates an instance of aSeparator
record class. -
Method Summary
Modifier and TypeMethodDescriptionchar
Returns the value of thecharacter
record component.final boolean
Indicates whether some other object is "equal to" this one.int
escape()
Returns the value of theescape
record component.final int
hashCode()
Returns a hash code value for this object.int
quote()
Returns the value of thequote
record component.final String
toString()
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 thecharacter
record component.- Returns:
- the value of the
character
record component
-
quote
public int quote()Returns the value of thequote
record component.- Returns:
- the value of the
quote
record component
-
escape
public int escape()Returns the value of theescape
record component.- Returns:
- the value of the
escape
record component
-