org.apache.commons.convert
Class DateTimeConverters.GenericDateToLong<S extends Date>
java.lang.Object
org.apache.commons.convert.AbstractConverter<S,Long>
org.apache.commons.convert.DateTimeConverters.GenericDateToLong<S>
- All Implemented Interfaces:
- Converter<S,Long>, ConverterLoader
- Enclosing class:
- DateTimeConverters
public static class DateTimeConverters.GenericDateToLong<S extends Date>
- extends AbstractConverter<S,Long>
An object that converts a java.util.Date
(and its subclasses) to a
Long
.
Method Summary |
Long |
convert(S obj)
Returns the millisecond value of obj . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateTimeConverters.GenericDateToLong
public DateTimeConverters.GenericDateToLong(Class<S> source)
convert
public Long convert(S obj)
throws ConversionException
- Returns the millisecond value of
obj
.
- Parameters:
obj
- The source Object
to convert
- Returns:
- The converted
Object
- Throws:
ConversionException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.