T - Any object.public abstract class AbstractFormatterTime<T> extends Object implements IFormatter
| Modifier and Type | Field and Description |
|---|---|
protected ICache<String,T> |
cache
Cache of formatters.
|
| Constructor and Description |
|---|
AbstractFormatterTime() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Object value,
Object[] args)
Format a given object to another using some arguments as auxiliary.
|
protected abstract String |
format(T pattern,
Object value,
Object[] args) |
void |
initialize()
Initialize something.
|
protected abstract T |
newInstance(String str) |
protected abstract boolean |
testType(Object value) |
public void initialize()
IResetableinitialize in interface IResetablepublic String format(Object value, Object[] args) throws FormatterException
IFormatterformat in interface IFormattervalue - The value to be formatted.args - The arguments.FormatterException - On format errors.protected abstract boolean testType(Object value)
Copyright © 2016. All rights reserved.