Class CalendarToDateTypeConverter<T extends Calendar>
java.lang.Object
com.blazebit.persistence.view.impl.type.CalendarToDateTypeConverter<T>
- All Implemented Interfaces:
TypeConverter<T,Date>
public abstract class CalendarToDateTypeConverter<T extends Calendar> extends Object implements TypeConverter<T,Date>
- Since:
- 1.4.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description static CalendarToDateTypeConverter<Calendar>
JAVA_UTIL_CALENDAR_CONVERTER
static CalendarToDateTypeConverter<GregorianCalendar>
JAVA_UTIL_GREGORIAN_CALENDAR_CONVERTER
-
Constructor Summary
Constructors Constructor Description CalendarToDateTypeConverter()
-
Method Summary
Modifier and Type Method Description Date
convertToViewType(Calendar object)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.blazebit.persistence.view.spi.type.TypeConverter
convertToUnderlyingType, getUnderlyingType
-
Field Details
-
JAVA_UTIL_CALENDAR_CONVERTER
-
JAVA_UTIL_GREGORIAN_CALENDAR_CONVERTER
public static final CalendarToDateTypeConverter<GregorianCalendar> JAVA_UTIL_GREGORIAN_CALENDAR_CONVERTER
-
-
Constructor Details
-
CalendarToDateTypeConverter
public CalendarToDateTypeConverter()
-
-
Method Details
-
convertToViewType
- Specified by:
convertToViewType
in interfaceTypeConverter<T extends Calendar,Date>
-