Module edu.hm.hafner.analysis.model
Class Duplicate
java.lang.Object
edu.hm.hafner.analysis.parser.dry.dupfinder.Duplicate
Java Bean class for a Reshaper DupFinder duplicate.
- Author:
- Rafal Jasica
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFragment(Fragment file) Adds a new file to this duplication.intgetCost()Returns the duplicate cost.Returns all files of the duplication.voidsetCost(int cost) Sets the duplicate cost to the specified value.
-
Constructor Details
-
Duplicate
public Duplicate()
-
-
Method Details
-
getCost
public int getCost()Returns the duplicate cost.- Returns:
- the duplicate cost
-
setCost
public void setCost(int cost) Sets the duplicate cost to the specified value.- Parameters:
cost- the value to set
-
addFragment
Adds a new file to this duplication.- Parameters:
file- the new file
-
getFragments
Returns all files of the duplication. The returned collection is read-only.- Returns:
- all files
-