|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.duplicator.DuplicateInfo
public class DuplicateInfo
Concrete duplicate. Encapsulates duplicate metrics suah as duplicate hash, duplicate cost (duplicate code complexity which is defined by the amount of statements, expressions, declarations and method calls) and duplicating code fragments
| Nested Class Summary | |
|---|---|
static class |
DuplicateInfo.CharOffset
Offsets calculated as absolute char offset within a file. |
static class |
DuplicateInfo.DuplicateMetrics
Duplicates metrics which encapsulate hash, cost and density |
static class |
DuplicateInfo.Fragment
Duplicating code fragment. |
static class |
DuplicateInfo.FragmentOffset
|
static class |
DuplicateInfo.LineOffset
Offsets calculated as line offset within a file. |
static class |
DuplicateInfo.MetricsWithFiles
Metrics with files storage. |
static class |
DuplicateInfo.NormalizedLineEndOffset
Fragment offset calculated for a file with normalized line ends (all line endings are \n). |
| Constructor Summary | |
|---|---|
DuplicateInfo(int hash,
int cost,
DuplicateInfo.Fragment[] fragments)
Creates a duplicate with specified hash, cost and fragments. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getCost()
Gets the current duplicates cost |
int |
getDensity()
Gets the current duplicates density |
DuplicateInfo.Fragment[] |
getFragments()
Gets the current duplicates code fragments |
int |
getHash()
Gets the current duplicates hash |
DuplicateInfo.DuplicateMetrics |
getMetrics()
Gets the current duplicates metrics which are hash, cost and density |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DuplicateInfo(int hash,
int cost,
DuplicateInfo.Fragment[] fragments)
hash - duplicate hashcost - fragments - | Method Detail |
|---|
public DuplicateInfo.DuplicateMetrics getMetrics()
public DuplicateInfo.Fragment[] getFragments()
public int getHash()
public int getCost()
public int getDensity()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||