
net.sf.jagg.msd.NumberDiscriminator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jagg-core Show documentation
Show all versions of jagg-core Show documentation
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.msd;
/**
* A NumberDiscriminator
discriminates Lists
of
* Numbers
.
*
* @author Randy Gettman
* @since 0.5.0
*/
public abstract class NumberDiscriminator extends PortionDiscriminator
{
/**
* Numbers will be discriminated this number of bits at a time.
*/
public static final int PORTION_BITS = 16;
/**
* This is the mask used to extract a portion of a number.
*/
public static final int PORTION_MASK = (1 << PORTION_BITS) - 1;
/**
* Returns an appropriate Extractor
.
* @param extractor An Extractor
that returns appropriate
* labels.
* @return An appropriate Extractor
.
*/
protected abstract PortionExtractor getPortionExtractor(Extractor extractor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy