Coverage Report - com.sdmetrics.metrics.SetProcedureCache - www.sdmetrics.com
 
Classes in this File Line Coverage Branch Coverage Complexity
SetProcedureCache
100%
7/7
N/A
1
 
 1  
 package com.sdmetrics.metrics;
 2  
 
 3  
 /** Cache for set calculation procedures. */
 4  
 class SetProcedureCache extends ProcedureCache<SetProcedure> {
 5  
 
 6  
         /**
 7  
          * Creates a new cache and registers the standard procedures that come with
 8  
          * SDMetrics.
 9  
          */
 10  
         SetProcedureCache() {
 11  174
                 super("set procedure");
 12  174
                 addProcedureClass("projection", SetProcedureProjection.class);
 13  174
                 addProcedureClass("compare", SetProcedureCompare.class);
 14  174
                 addProcedureClass("subelements", SetProcedureSubelements.class);
 15  174
                 addProcedureClass("compoundset", SetProcedureCompound.class);
 16  174
         }
 17  
 
 18  
         @Override
 19  
         protected Class<? extends SetProcedure> loadClass(String className)
 20  
                         throws ClassNotFoundException {
 21  151
                 return Class.forName(className).asSubclass(SetProcedure.class);
 22  
         }
 23  
 }