Class DateFormatContainer
- java.lang.Object
-
- com.github.dozermapper.core.converters.DateFormatContainer
-
public class DateFormatContainer extends Object
Internal class used as a container to determine the date format to use for a particular field mapping. Only intended for internal use.
-
-
Constructor Summary
Constructors Constructor Description DateFormatContainer(String dfStr)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DateFormatgetDateFormat()DateTimeFormattergetDateTimeFormatter()Date and time formatter for Java 8 Date & Time objects.booleanisPresent()Whether a date format is present.voidsetDateFormat(DateFormat dateFormat)Deprecated.This method will break internal state of the instance by setting formatter which is not using format provided using constructor.
-
-
-
Constructor Detail
-
DateFormatContainer
public DateFormatContainer(String dfStr)
-
-
Method Detail
-
isPresent
public boolean isPresent()
Whether a date format is present.- Returns:
- If present, return
true - Since:
- 6.5.0
-
getDateFormat
public DateFormat getDateFormat()
-
getDateTimeFormatter
public DateTimeFormatter getDateTimeFormatter()
Date and time formatter for Java 8 Date & Time objects.- Returns:
- formatter
-
setDateFormat
@Deprecated public void setDateFormat(DateFormat dateFormat)
Deprecated.This method will break internal state of the instance by setting formatter which is not using format provided using constructor. It will be removed in future releases.TODO replace method call with reflection in tests.- Parameters:
dateFormat- dateFormat
-
-