Klasse Duplicate
java.lang.Object
edu.hm.hafner.analysis.parser.dry.dupfinder.Duplicate
Java Bean class for a Reshaper DupFinder duplicate.
- Autor:
- Rafal Jasica
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddFragment(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.
-
Konstruktordetails
-
Duplicate
public Duplicate()
-
-
Methodendetails
-
getCost
public int getCost()Returns the duplicate cost.- Gibt zurück:
- the duplicate cost
-
setCost
public void setCost(int cost) Sets the duplicate cost to the specified value.- Parameter:
cost- the value to set
-
addFragment
Adds a new file to this duplication.- Parameter:
file- the new file
-
getFragments
Returns all files of the duplication. The returned collection is read-only.- Gibt zurück:
- all files
-