org.apache.commons.convert
Class DateTimeConverters.CalendarToLong

java.lang.Object
  extended by org.apache.commons.convert.AbstractConverter<Calendar,Long>
      extended by org.apache.commons.convert.DateTimeConverters.CalendarToLong
All Implemented Interfaces:
Converter<Calendar,Long>, ConverterLoader
Enclosing class:
DateTimeConverters

public static class DateTimeConverters.CalendarToLong
extends AbstractConverter<Calendar,Long>

An object that converts a Calendar to a Long.


Constructor Summary
DateTimeConverters.CalendarToLong()
           
 
Method Summary
 Long convert(Calendar obj)
          Returns the millisecond value of obj.
 
Methods inherited from class org.apache.commons.convert.AbstractConverter
canConvert, getSourceClass, getTargetClass, loadConverters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeConverters.CalendarToLong

public DateTimeConverters.CalendarToLong()
Method Detail

convert

public Long convert(Calendar 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.