T - Date object.public abstract class AbstractConverterTimeTemplate<T> extends AbstractConverterTimezone<T>
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
values
Strings that stand for 'current date'.
|
cacheTimezone, FEATURE_TIMEZONE, timezone| Constructor and Description |
|---|
AbstractConverterTimeTemplate(List<String> values)
Constructor using strings.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object value,
Object[] args)
Convert a given object to another using some arguments as auxiliary.
|
protected abstract T |
instance()
Creates an instance of date.
|
protected T |
postProcess(Object value,
Object[] args,
T result)
Post process a instance of data.
|
protected boolean |
testValue(String str,
String value)
Test the string against a value.
|
getTimezone, getZone, initialize, setTimezoneacceptpublic Object convert(Object value, Object[] args) throws ConverterException
IConverterconvert in interface IConverterconvert in class ConverterNotNullNotEmptyvalue - The value to be converted.args - The arguments.ConverterException - On conversion errors.protected boolean testValue(String str, String value)
str - String.value - A value.protected abstract T instance()
Copyright © 2016. All rights reserved.