org.sonar.batch.duplication
Class DuplicationCache

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

public class DuplicationCache
extends Object
implements BatchComponent

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


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

Constructor Detail

DuplicationCache

public DuplicationCache(Caches caches)
Method Detail

entries

public Iterable<Cache.Entry<List<DuplicationGroup>>> entries()

byComponent

@CheckForNull
public List<DuplicationGroup> byComponent(String effectiveKey)

put

public DuplicationCache put(String effectiveKey,
                            List<DuplicationGroup> blocks)


Copyright © 2009–2015 SonarSource. All rights reserved.