Package org.jclouds.date.internal
Class DateServiceDateCodecFactory.DateServiceAsctimeCodec
- java.lang.Object
-
- org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceAsctimeCodec
-
- All Implemented Interfaces:
DateCodec
- Enclosing class:
- DateServiceDateCodecFactory
@Singleton public static class DateServiceDateCodecFactory.DateServiceAsctimeCodec extends Object implements DateCodec
-
-
Field Summary
Fields Modifier and Type Field Description protected DateService
dateService
-
Constructor Summary
Constructors Constructor Description DateServiceAsctimeCodec(DateService dateService)
-
-
-
Field Detail
-
dateService
protected final DateService dateService
-
-
Constructor Detail
-
DateServiceAsctimeCodec
@Inject public DateServiceAsctimeCodec(DateService dateService)
-
-
Method Detail
-
toDate
public Date toDate(String date) throws IllegalArgumentException
- Specified by:
toDate
in interfaceDateCodec
- Returns:
- parsed date
- Throws:
IllegalArgumentException
- if the input is invalid
-
-