org.specrunner.formatters.core
Class FormatterJodatimeTemplate
java.lang.Object
org.specrunner.formatters.core.AbstractFormatterTime<org.joda.time.format.DateTimeFormatter>
org.specrunner.formatters.core.FormatterJodatime
org.specrunner.formatters.core.FormatterJodatimeTemplate
- All Implemented Interfaces:
- Serializable, IFormatter, IResetable
public class FormatterJodatimeTemplate
- extends FormatterJodatime
Formatter template for Jodatime.
- Author:
- Thiago Santos
- See Also:
- Serialized Form
|
Method Summary |
String |
format(Object value,
Object[] args)
Format 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 |
FormatterJodatimeTemplate
public FormatterJodatimeTemplate(String pattern)
format
public String format(Object value,
Object[] args)
throws FormatterException
- Description copied from interface:
IFormatter
- Format a given object to another using some arguments as auxiliary.
- Specified by:
format in interface IFormatter- Overrides:
format in class AbstractFormatterTime<org.joda.time.format.DateTimeFormatter>
- Parameters:
value - The value to be formatted.args - The arguments.
- Returns:
- The formatted object.
- Throws:
FormatterException - On format errors.
Copyright © 2015. All rights reserved.