Record Class SuppressWarningsHolder.Entry
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder.Entry
- Record Components:
checkName- the source name of the suppressed checkfirstLine- the first line of the suppression regionfirstColumn- the first column of the suppression regionlastLine- the last line of the suppression regionlastColumn- the last column of the suppression region
- Enclosing class:
- SuppressWarningsHolder
private static record SuppressWarningsHolder.Entry(String checkName, int firstLine, int firstColumn, int lastLine, int lastColumn)
extends Record
Records a particular suppression for a region of a file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecheckNamerecord component.private final intThe field for thefirstColumnrecord component.private final intThe field for thefirstLinerecord component.private final intThe field for thelastColumnrecord component.private final intThe field for thelastLinerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckNamerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstColumnrecord component.intReturns the value of thefirstLinerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelastColumnrecord component.intlastLine()Returns the value of thelastLinerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
checkName
The field for thecheckNamerecord component. -
firstLine
The field for thefirstLinerecord component. -
firstColumn
The field for thefirstColumnrecord component. -
lastLine
The field for thelastLinerecord component. -
lastColumn
The field for thelastColumnrecord component.
-
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
checkName- the value for thecheckNamerecord componentfirstLine- the value for thefirstLinerecord componentfirstColumn- the value for thefirstColumnrecord componentlastLine- the value for thelastLinerecord componentlastColumn- the value for thelastColumnrecord 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 '=='. -
checkName
Returns the value of thecheckNamerecord component.- Returns:
- the value of the
checkNamerecord component
-
firstLine
Returns the value of thefirstLinerecord component.- Returns:
- the value of the
firstLinerecord component
-
firstColumn
Returns the value of thefirstColumnrecord component.- Returns:
- the value of the
firstColumnrecord component
-
lastLine
Returns the value of thelastLinerecord component.- Returns:
- the value of the
lastLinerecord component
-
lastColumn
Returns the value of thelastColumnrecord component.- Returns:
- the value of the
lastColumnrecord component
-