Record Class InlineConfigUtils.MatchedDelimiter
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.utils.InlineConfigUtils.MatchedDelimiter
- Record Components:
end- the end delimiter to search for, ornullif the config block ends implicitly at the first blank line (properties-style).xmlStyleConfig- true if the config content is XML (<module>form), false if it is the legacy bare key=value form.
- Enclosing class:
InlineConfigUtils
public static record InlineConfigUtils.MatchedDelimiter(String end, boolean xmlStyleConfig)
extends Record
Describes which delimiter convention matched the first line of a file, so callers
can locate the end of the config block and know whether the config content should
be parsed as XML module config or the legacy bare key=value format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theendrecord component.private final booleanThe field for thexmlStyleConfigrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMatchedDelimiter(String end, boolean xmlStyleConfig) Creates an instance of aMatchedDelimiterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final 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 thexmlStyleConfigrecord component.
-
Field Details
-
end
The field for theendrecord component. -
xmlStyleConfig
The field for thexmlStyleConfigrecord component.
-
-
Constructor Details
-
MatchedDelimiter
Creates an instance of aMatchedDelimiterrecord class.- Parameters:
end- the value for theendrecord componentxmlStyleConfig- the value for thexmlStyleConfigrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
xmlStyleConfig
Returns the value of thexmlStyleConfigrecord component.- Returns:
- the value of the
xmlStyleConfigrecord component
-