All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jagg.util.AnalyticCache Maven / Gradle / Ivy

Go to download

jAgg is a Java 5.0 API that supports “group by” operations on Lists of Java objects: aggregate operations such as count, sum, max, min, avg, and many more. It also allows custom aggregate operations.

The newest version!
package net.sf.jagg.util;

import net.sf.jagg.AnalyticAggregator;

/**
 * This subclasses FunctionCache with a type argument of
 * AnalyticAggregator.
 *
 * @author Randy Gettman
 * @since 0.9.0
 */
public class AnalyticCache extends FunctionCache
{
   /**
    * Returns the archetype itself, if it's not already in use, or a copy.
    * @param archetype An archetype to either use or copy.
    * @return The archetype itself, if it's not already in use, or a copy.
    */
   protected AnalyticAggregator replicate(AnalyticAggregator archetype)
   {
      return archetype.replicate();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy