类 Utils
java.lang.Object
com.palantir.javaformat.Utils
-
方法概要
修饰符和类型方法说明static 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.
-
方法详细资料
-
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.
-