hudson.plugins.dry.parser.simian
Class Set

java.lang.Object
  extended by hudson.plugins.dry.parser.simian.Set

public class Set
extends Object

Java Bean class for a Simian duplication set.

Author:
Ulli Hafner

Constructor Summary
Set()
           
 
Method Summary
 void addBlock(Block block)
          Adds a new block to this duplication set.
 Collection<Block> getBlocks()
          Returns all blocks of this duplication set.
 int getLineCount()
          Returns the number of duplicated lines.
 void setLineCount(int value)
          Sets the number of duplicated lines to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Set

public Set()
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


Copyright © 2004-2013 Hudson. All Rights Reserved.