java.lang.Object
com.google.googlejavaformat.java.Replacement
public final class Replacement extends Object
Represents a range in the original source and replacement text for that range.
google-java-format doesn't depend on AutoValue, to allow AutoValue to depend on google-java-format.
-
Method Summary
Modifier and Type Method Description static Replacementcreate(int startPosition, int endPosition, String replaceWith)booleanequals(Object o)StringgetReplacementString()The string to replace the range of characters with.Range<Integer>getReplaceRange()The range of characters in the original source to replace.inthashCode()
-
Method Details
-
create
-
getReplaceRange
The range of characters in the original source to replace. -
getReplacementString
The string to replace the range of characters with. -
equals
-
hashCode
public int hashCode()
-