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.
|
Field Summary |
protected static java.util.Calendar |
INSTANCE
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
protected static java.util.Calendar INSTANCE
DateGrouper
public DateGrouper()
getCalendarField
public static java.lang.Object getCalendarField(java.lang.Object value,
int field)
getCalendarFieldAsInt
public static int getCalendarFieldAsInt(java.lang.Object value,
int field)
getType
public java.lang.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.