public interface DateIntervalConverter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INCLUDING_CURRENT_DESCR |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(BaseDateInterval dateInterval)
Formats date interval to string presentation.
|
java.lang.String |
getLocalizedValue(BaseDateInterval dateInterval)
Formats date interval and gets localized value.
|
boolean |
matches(java.lang.String dateInterval)
Checks that provided date interval matches with converter's value pattern.
|
BaseDateInterval |
parse(java.lang.String dateInterval)
Parses string presentation of date interval to
BaseDateInterval . |
boolean |
supports(BaseDateInterval.Type type) |
static final java.lang.String INCLUDING_CURRENT_DESCR
@Nullable BaseDateInterval parse(java.lang.String dateInterval)
BaseDateInterval
.dateInterval
- string presentation of date intervalnull
if input parameter is null or empty.java.lang.String format(BaseDateInterval dateInterval)
dateInterval
- date interval instance@Nullable java.lang.String getLocalizedValue(@Nullable BaseDateInterval dateInterval)
dateInterval
- date interval instanceboolean matches(java.lang.String dateInterval)
dateInterval
- string presentation of date intervalboolean supports(BaseDateInterval.Type type)
type
- date interval type