Qizx/open API

net.axyana.qizxopen.util
Class DefaultDateSifter

java.lang.Object
  extended bynet.axyana.qizxopen.util.DefaultDateSifter
All Implemented Interfaces:
DateSifter, NumberSifter, java.io.Serializable

public class DefaultDateSifter
extends java.lang.Object
implements DateSifter, java.io.Serializable

Default DateSifter implementation: uses a DateFormat (by default the short format of the default locale.)

See Also:
Serialized Form

Constructor Summary
DefaultDateSifter()
          Uses the default locale.
DefaultDateSifter(java.text.DateFormat format)
          General case: use a DateFormat.
 
Method Summary
 double convert(java.lang.String value)
          Converts the date to a double (in milliseconds from 1970-01-01 00:00:00 UTC).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDateSifter

public DefaultDateSifter()
Uses the default locale.


DefaultDateSifter

public DefaultDateSifter(java.text.DateFormat format)
General case: use a DateFormat.

Method Detail

convert

public double convert(java.lang.String value)
Description copied from interface: DateSifter
Converts the date to a double (in milliseconds from 1970-01-01 00:00:00 UTC). If the conversion is not possible, returns NaN.

Specified by:
convert in interface DateSifter

© 2005 Axyana Software