Class Duplicate
- java.lang.Object
-
- edu.hm.hafner.analysis.parser.dry.dupfinder.Duplicate
-
public class Duplicate extends Object
Java Bean class for a Reshaper DupFinder duplicate.- Author:
- Rafal Jasica
-
-
Constructor Summary
Constructors Constructor Description Duplicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFragment(Fragment file)Adds a new file to this duplication.intgetCost()Returns the duplicate cost.Collection<Fragment>getFragments()Returns all files of the duplication.voidsetCost(int cost)Sets the duplicate cost to the specified value.
-
-
-
Method Detail
-
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
public void addFragment(Fragment file)
Adds a new file to this duplication.- Parameters:
file- the new file
-
getFragments
public Collection<Fragment> getFragments()
Returns all files of the duplication. The returned collection is read-only.- Returns:
- all files
-
-