Class HyphenToNullIso8601Codec
- java.lang.Object
-
- org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
-
- org.jclouds.openstack.nova.ec2.internal.HyphenToNullIso8601Codec
-
- All Implemented Interfaces:
DateCodec
@Singleton public class HyphenToNullIso8601Codec extends DateServiceDateCodecFactory.DateServiceIso8601Codec
-
-
Field Summary
-
Fields inherited from class org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
dateService
-
-
Constructor Summary
Constructors Constructor Description HyphenToNullIso8601Codec(DateService dateService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
toDate(String date)
String
toString()
-
Methods inherited from class org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
toString
-
-
-
-
Constructor Detail
-
HyphenToNullIso8601Codec
@Inject public HyphenToNullIso8601Codec(DateService dateService)
-
-
Method Detail
-
toDate
public Date toDate(String date) throws IllegalArgumentException
- Specified by:
toDate
in interfaceDateCodec
- Overrides:
toDate
in classDateServiceDateCodecFactory.DateServiceIso8601Codec
- Returns:
- parsed date
- Throws:
IllegalArgumentException
- if the input is invalid
-
toString
public String toString()
- Overrides:
toString
in classDateServiceDateCodecFactory.DateServiceIso8601Codec
-
-