jetbrains.buildServer.duplicator
Class DuplicateInfo.NormalizedLineEndOffset

java.lang.Object
  extended by jetbrains.buildServer.duplicator.DuplicateInfo.FragmentOffset
      extended by jetbrains.buildServer.duplicator.DuplicateInfo.NormalizedLineEndOffset
Enclosing class:
DuplicateInfo

public static class DuplicateInfo.NormalizedLineEndOffset
extends DuplicateInfo.FragmentOffset

Fragment offset calculated for a file with normalized line ends (all line endings are \n). Start offset and end offset are character positions in the normalized content.


Field Summary
static java.lang.String PREFIX
           
 
Constructor Summary
DuplicateInfo.NormalizedLineEndOffset(int startOffset, int endOffset)
           
DuplicateInfo.NormalizedLineEndOffset(java.lang.String serialized)
           
 
Method Summary
 java.lang.String extractFragment(java.lang.String fileContent)
           
 java.lang.String getAsString()
           
 
Methods inherited from class jetbrains.buildServer.duplicator.DuplicateInfo.FragmentOffset
createFromString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
See Also:
Constant Field Values
Constructor Detail

DuplicateInfo.NormalizedLineEndOffset

public DuplicateInfo.NormalizedLineEndOffset(int startOffset,
                                             int endOffset)

DuplicateInfo.NormalizedLineEndOffset

public DuplicateInfo.NormalizedLineEndOffset(java.lang.String serialized)
Method Detail

getAsString

public java.lang.String getAsString()
Specified by:
getAsString in class DuplicateInfo.FragmentOffset

extractFragment

public java.lang.String extractFragment(java.lang.String fileContent)
Specified by:
extractFragment in class DuplicateInfo.FragmentOffset