com.ibm.pdq.runtime.data.formatters

Class TimeFormatter

  1. java.lang.Object
  2. extended bycom.ibm.pdq.runtime.data.formatters.TimeFormatter

public class TimeFormatter
extends Object
TimeFormatter 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
  1. String
format(Object time)
  1. Object
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)