com.ibm.pdq.runtime.data.formatters
Class TimeFormatter
- java.lang.Object
com.ibm.pdq.runtime.data.formatters.TimeFormatter
public class TimeFormatter extends ObjectTimeFormatter can be used with @Format annotation. It formats the string data using java.text.DateFormat formatting facilities.
Constructor Summary
Constructor and Description |
---|
TimeFormatter(String options)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
format(Object time)
|
|
parse(String timeAsString)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
TimeFormatter
public TimeFormatter(String options)
Method Detail
format
public String format(Object time)
parse
public Object parse(String timeAsString)