Class FixCalculator


  • public class FixCalculator
    extends Object
    Produces final version of an input content with all fixes applied together with list of edits.
    • Method Detail

      • getNewFileContent

        public static String getNewFileContent​(String originalContent,
                                               List<FixReplacement> fixReplacements)
                                        throws ResourceConflictException
        Returns a result of applying fixes to an original content.
        Parameters:
        originalContent - is a text to which fixes must be applied
        fixReplacements - is a list of fixes to be applied
        Throws:
        ResourceConflictException - if the fixReplacements contains invalid data (for example, if an item points to an invalid range or if some ranges are intersected).