Class Utils

java.lang.Object
com.palantir.javaformat.Utils

public final class Utils extends Object
  • Method Details

    • applyReplacements

      public static String applyReplacements(String input, Collection<com.palantir.javaformat.java.Replacement> replacementsCollection)
    • lineRangesToCharRanges

      public static com.google.common.collect.RangeSet<Integer> lineRangesToCharRanges(String input, com.google.common.collect.RangeSet<Integer> lineRanges)
      Converts zero-indexed, [closed, open) line ranges in the given source file to character ranges.