Class Duplicate


  • public class Duplicate
    extends Object
    Java Bean class for a Reshaper DupFinder duplicate.
    Author:
    Rafal Jasica
    • Constructor Detail

      • Duplicate

        public Duplicate()
    • 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