org.specrunner.converters.core
Class ConverterDatePatternArgs
java.lang.Object
org.specrunner.converters.core.ConverterNotNullNotEmpty
org.specrunner.converters.core.AbstractConverterTimezone<Date>
org.specrunner.converters.core.ConverterDatePatternArgs
- All Implemented Interfaces:
- Serializable, IConverter, IResetable
- Direct Known Subclasses:
- ConverterTimestampPatternArgs
public class ConverterDatePatternArgs
- extends AbstractConverterTimezone<Date>
Convert any date (Date from Java), given a provided pattern in arg[0].
- Author:
- Thiago Santos
- See Also:
- Serialized Form
|
Method Summary |
Object |
convert(Object value,
Object[] args)
Convert a given object to another using some arguments as auxiliary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected static ICache<String,SimpleDateFormat> cache
- Cache of formatters.
ConverterDatePatternArgs
public ConverterDatePatternArgs()
convert
public Object convert(Object value,
Object[] args)
throws ConverterException
- Description copied from interface:
IConverter
- Convert a given object to another using some arguments as auxiliary.
- Specified by:
convert in interface IConverter- Overrides:
convert in class ConverterNotNullNotEmpty
- Parameters:
value - The value to be converted.args - The arguments.
- Returns:
- The converted object.
- Throws:
ConverterException - On conversion errors.
Copyright © 2014. All rights reserved.