com.jidesoft.grouper.date
Class DateGrouper
java.lang.Object
com.jidesoft.grouper.AbstractObjectGrouper
com.jidesoft.grouper.date.DateGrouper
- All Implemented Interfaces:
- ObjectGrouper
- Direct Known Subclasses:
- DateDayOfMonthGrouper, DateDayOfWeekGrouper, DateDayOfWeekInMonthGrouper, DateDayOfYearGrouper, DateMonthGrouper, DateQuarterGrouper, DateWeekOfMonthGrouper, DateWeekOfYearGrouper, DateYearGrouper
public abstract class DateGrouper
- extends AbstractObjectGrouper
An abstract Grouper which can take data type such as Date, Calendar or Long and provide getCalendarFieldAsInt(Object,int) and getCalendarField(Object,int) methods to access the field of the
Calendar.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
protected static Calendar INSTANCE
DateGrouper
public DateGrouper()
getCalendarField
public static Object getCalendarField(Object value,
int field)
getCalendarFieldAsInt
public static int getCalendarFieldAsInt(Object value,
int field)
getType
public Class<?> getType()
- Description copied from interface:
ObjectGrouper
- Gets the group value type. It should be the type of the value that is returned from the getGroupValue.
- Returns:
- the group value type.
Copyright © 2013. All Rights Reserved.