org.sonar.batch.duplication
Class BlockCache

java.lang.Object
  extended by org.sonar.batch.duplication.BlockCache
All Implemented Interfaces:
BatchComponent

public class BlockCache
extends Object
implements BatchComponent

Cache of duplication blocks. This cache is shared amongst all project modules.


Constructor Summary
BlockCache(Caches caches)
           
 
Method Summary
 org.sonar.duplications.block.FileBlocks byComponent(String effectiveKey)
           
 Iterable<Cache.Entry<org.sonar.duplications.block.FileBlocks>> entries()
           
 BlockCache put(String effectiveKey, org.sonar.duplications.block.FileBlocks blocks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockCache

public BlockCache(Caches caches)
Method Detail

entries

public Iterable<Cache.Entry<org.sonar.duplications.block.FileBlocks>> entries()

byComponent

@CheckForNull
public org.sonar.duplications.block.FileBlocks byComponent(String effectiveKey)

put

public BlockCache put(String effectiveKey,
                      org.sonar.duplications.block.FileBlocks blocks)


Copyright © 2009–2015 SonarSource. All rights reserved.