com.ibm.pdq.runtime.data.formatters

Class TimestampFormatter

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

public class TimestampFormatter
extends Object
TimestampFormatter can be used with @Format annotation. It formats the string data using java.text.DateFormat formatting facilities.

Constructor Summary

Constructor and Description
TimestampFormatter(String options)

Method Summary

Modifier and Type Method and Description
  1. String
format(Object timestamp)
  1. Object
parse(String timestampAsString)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

TimestampFormatter

public TimestampFormatter(String options)

Method Detail

format

public String format(Object timestamp)

parse

public Object parse(String timestampAsString)