public final class DuplicationGroup extends Object implements Serializable
| Constructor and Description |
|---|
DuplicationGroup()
Creates a new duplication group.
|
DuplicationGroup(String codeFragment)
Creates a new duplication group for the specified code fragment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Issue issue)
Adds the specified duplication (represented by an
Issue instance) to this group of duplications. |
boolean |
equals(Object o) |
String |
getCodeFragment()
Returns the code fragment that has been duplicated by all members of this group.
|
List<Issue> |
getDuplications() |
int |
hashCode() |
void |
setCodeFragment(String codeFragment)
Sets the code fragment of the duplication group.
|
public DuplicationGroup(@CheckForNull
String codeFragment)
codeFragment - the copied code fragmentpublic DuplicationGroup()
add(Issue).public void setCodeFragment(String codeFragment)
codeFragment - the copied code fragmentpublic void add(Issue issue)
Issue instance) to this group of duplications.issue - the issues that references the position of the duplicated code fragmentpublic String getCodeFragment()
Copyright © 2018. All rights reserved.