Package com.jidesoft.grouper.date
Class DateQuarterGrouper
- java.lang.Object
-
- com.jidesoft.grouper.AbstractObjectGrouper
-
- com.jidesoft.grouper.date.DateGrouper
-
- com.jidesoft.grouper.date.DateQuarterGrouper
-
- All Implemented Interfaces:
ObjectGrouper
public class DateQuarterGrouper extends DateGrouper
-
-
Field Summary
Fields Modifier and Type Field Description static GrouperContextCONTEXT-
Fields inherited from class com.jidesoft.grouper.date.DateGrouper
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description DateQuarterGrouper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Object[]getAvailableGroups()ConverterContextgetConverterContext()Gets the converter context for the value returned from this object grouper.java.lang.StringgetName()Gets the name of this object grouper.java.lang.ObjectgetValue(java.lang.Object value)Gets the group value after this value is grouped.-
Methods inherited from class com.jidesoft.grouper.date.DateGrouper
getCalendarField, getCalendarFieldAsInt, getCalendarInstance, getType
-
Methods inherited from class com.jidesoft.grouper.AbstractObjectGrouper
getComparatorContext
-
-
-
-
Field Detail
-
CONTEXT
public static GrouperContext CONTEXT
-
-
Method Detail
-
getAvailableGroups
public static java.lang.Object[] getAvailableGroups()
-
getValue
public java.lang.Object getValue(java.lang.Object value)
Description copied from interface:ObjectGrouperGets the group value after this value is grouped. If two objects return the same value in this getGroupValue method, the two objects are considered as one group. We assume all values returned from this method are of the same type which is returned inObjectGrouper.getType().- Parameters:
value- the value- Returns:
- the value after grouped.
-
getName
public java.lang.String getName()
Description copied from interface:ObjectGrouperGets the name of this object grouper.- Returns:
- the name of this grouper.
-
getConverterContext
public ConverterContext getConverterContext()
Description copied from interface:ObjectGrouperGets the converter context for the value returned from this object grouper. This converter context will be used to find the ObjectConverter that will convert the value returned fromObjectGrouper.getValue(Object)method to String so that it can be displayed somewhere.- Specified by:
getConverterContextin interfaceObjectGrouper- Overrides:
getConverterContextin classAbstractObjectGrouper- Returns:
- the converter context.
-
-