Class Set
- java.lang.Object
-
- edu.hm.hafner.analysis.parser.dry.simian.Set
-
public class Set extends Object
Java Bean class for a Simian duplication set.- Author:
- Ullrich Hafner
-
-
Constructor Summary
Constructors Constructor Description Set()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBlock(Block block)Adds a new block to this duplication set.Collection<Block>getBlocks()Returns all blocks of this duplication set.intgetLineCount()Returns the number of duplicated lines.voidsetLineCount(int value)Sets the number of duplicated lines to the specified value.
-
-
-
Method Detail
-
addBlock
public void addBlock(Block block)
Adds a new block to this duplication set.- Parameters:
block- the new block
-
getBlocks
public Collection<Block> getBlocks()
Returns all blocks of this duplication set. The returned collection is read-only.- Returns:
- all files
-
getLineCount
public int getLineCount()
Returns the number of duplicated lines.- Returns:
- the lineCount
-
setLineCount
public void setLineCount(int value)
Sets the number of duplicated lines to the specified value.- Parameters:
value- the value to set
-
-