public class Date extends Filter
| Modifier and Type | Class and Description |
|---|---|
static interface |
Date.CustomDateFormatSupport<T> |
| Modifier | Constructor and Description |
|---|---|
protected |
Date() |
protected |
Date(Date.CustomDateFormatSupport typeSupport) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDatePattern(String pattern)
Adds a new Date-pattern to be used when parsing a string to a Date.
|
Object |
apply(Object value,
Object... params)
Applies the filter on the 'value'.
|
static void |
removeDatePattern(String pattern)
Removed a Date-pattern to be used when parsing a string to a Date.
|
static void |
setLocale(Locale locale)
Changes the locale.
|
static Filter |
withCustomDateType(Date.CustomDateFormatSupport typeSupport) |
apply, get, getFilter, getFilters, registerFilterprotected Date()
protected Date(Date.CustomDateFormatSupport typeSupport)
public Object apply(Object value, Object... params)
Filterpublic static void setLocale(Locale locale)
locale - the new locale.public static void addDatePattern(String pattern)
pattern - the pattern.public static void removeDatePattern(String pattern)
pattern - the pattern.public static Filter withCustomDateType(Date.CustomDateFormatSupport typeSupport)
Copyright © 2012–2019. All rights reserved.