类 Replacement

java.lang.Object
com.palantir.javaformat.java.Replacement

public final class Replacement extends Object
Data class representing a range in the original source and replacement text for that range.
  • 方法详细资料

    • create

      public static Replacement create(int startPosition, int endPosition, String replaceWith)
    • getReplaceRange

      public com.google.common.collect.Range<Integer> getReplaceRange()
      The range of characters in the original source to replace.
    • getReplacementString

      public String getReplacementString()
      The string to replace the range of characters with.
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object