public class Replacement
extends java.lang.Object
google-java-format doesn't depend on AutoValue, to allow AutoValue to depend on google-java-format.
Modifier and Type | Method and Description |
---|---|
static Replacement |
create(int startPosition,
int endPosition,
java.lang.String replaceWith) |
static Replacement |
create(com.google.common.collect.Range<java.lang.Integer> range,
java.lang.String replaceWith) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getReplacementString()
The string to replace the range of characters with.
|
com.google.common.collect.Range<java.lang.Integer> |
getReplaceRange()
The range of characters in the original source to replace.
|
int |
hashCode() |
public static Replacement create(int startPosition, int endPosition, java.lang.String replaceWith)
public static Replacement create(com.google.common.collect.Range<java.lang.Integer> range, java.lang.String replaceWith)
public com.google.common.collect.Range<java.lang.Integer> getReplaceRange()
public java.lang.String getReplacementString()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2015-2018 Google Inc.. All Rights Reserved.