public final class Utils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
applyReplacements(java.lang.String input,
java.util.Collection<com.palantir.javaformat.java.Replacement> replacementsCollection) |
static com.google.common.collect.RangeSet<java.lang.Integer> |
lineRangesToCharRanges(java.lang.String input,
com.google.common.collect.RangeSet<java.lang.Integer> lineRanges)
Converts zero-indexed, [closed, open) line ranges in the given source file to character ranges.
|
public static java.lang.String applyReplacements(java.lang.String input,
java.util.Collection<com.palantir.javaformat.java.Replacement> replacementsCollection)
public static com.google.common.collect.RangeSet<java.lang.Integer> lineRangesToCharRanges(java.lang.String input,
com.google.common.collect.RangeSet<java.lang.Integer> lineRanges)