jetbrains.buildServer.duplicator
Class DuplicateInfo.Fragment

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

public static class DuplicateInfo.Fragment
extends java.lang.Object

Duplicating code fragment. Encapsulates a particular piece of code in some file.


Constructor Summary
DuplicateInfo.Fragment(int hash, java.lang.String file, int startLine, DuplicateInfo.FragmentOffset offset)
          Constructor for duplicate fragment
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getFile()
           
 int getHash()
           
 java.lang.String getOffsetInfo()
          Returns serialized offset information
 int getStartLine()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateInfo.Fragment

public DuplicateInfo.Fragment(int hash,
                              java.lang.String file,
                              int startLine,
                              DuplicateInfo.FragmentOffset offset)
Constructor for duplicate fragment

Parameters:
hash - fragment hash
file - file path
startLine - start line of the fragment (positive number > 0)
offset - fragment offset information
Method Detail

getHash

public int getHash()

getFile

public java.lang.String getFile()

getStartLine

public int getStartLine()

getOffsetInfo

public java.lang.String getOffsetInfo()
Returns serialized offset information


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object