Package com.palantir.javaformat
Class Utils
java.lang.Object
com.palantir.javaformat.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringapplyReplacements(String input, Collection<com.palantir.javaformat.java.Replacement> replacementsCollection) 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.
-
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.
-