Class BucketExpressionOrderer
- java.lang.Object
-
- net.sf.jasperreports.crosstabs.fill.BucketExpressionOrderer
-
- All Implemented Interfaces:
BucketOrderer
public class BucketExpressionOrderer extends Object implements BucketOrderer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description BucketExpressionOrderer(JRExpression orderByExpression, Comparator<Object> orderValueComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareOrderValues(Object value1, Object value2)
Object
getOrderValue(BucketingService.BucketMap bucketMap, BucketDefinition.Bucket bucketValue)
void
init(BucketingData bucketingData)
-
-
-
Constructor Detail
-
BucketExpressionOrderer
public BucketExpressionOrderer(JRExpression orderByExpression, Comparator<Object> orderValueComparator)
-
-
Method Detail
-
init
public void init(BucketingData bucketingData)
- Specified by:
init
in interfaceBucketOrderer
-
getOrderValue
public Object getOrderValue(BucketingService.BucketMap bucketMap, BucketDefinition.Bucket bucketValue) throws JRException
- Specified by:
getOrderValue
in interfaceBucketOrderer
- Throws:
JRException
-
compareOrderValues
public int compareOrderValues(Object value1, Object value2)
- Specified by:
compareOrderValues
in interfaceBucketOrderer
-
-