Record Class TraditionalJavadocConverter.Replacement
java.lang.Object
java.lang.Record
com.google.errorprone.bugpatterns.javadoc.TraditionalJavadocConverter.Replacement
- Record Components:
commentStart- the position of the/**in the original sourcecommentEnd- the position immediately after the*/in the original source
- Enclosing class:
TraditionalJavadocConverter
-
Constructor Summary
ConstructorsConstructorDescriptionReplacement(int start, int end, int commentStart, int commentEnd, String text) Creates an instance of aReplacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecommentEndrecord component.intReturns the value of thecommentStartrecord component.intend()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.intstart()Returns the value of thestartrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Replacement
Creates an instance of aReplacementrecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentcommentStart- the value for thecommentStartrecord componentcommentEnd- the value for thecommentEndrecord componenttext- the value for thetextrecord 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. -
start
public int start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public int end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
commentStart
public int commentStart()Returns the value of thecommentStartrecord component.- Returns:
- the value of the
commentStartrecord component
-
commentEnd
public int commentEnd()Returns the value of thecommentEndrecord component.- Returns:
- the value of the
commentEndrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-