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
-
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
-
firstLine
private final int firstLineThe field for thefirstLinerecord component. -
firstColumn
private final int firstColumnThe field for thefirstColumnrecord component. -
lastLine
private final int lastLineThe field for thelastLinerecord component. -
lastColumn
private final int lastColumnThe 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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
checkName
-
firstLine
-
firstColumn
public int firstColumn()Returns the value of thefirstColumnrecord component.- Returns:
- the value of the
firstColumnrecord component
-
lastLine
-
lastColumn
public int lastColumn()Returns the value of thelastColumnrecord component.- Returns:
- the value of the
lastColumnrecord component
-