public static enum MongoOperationsProvider.DateToDateTimeConverter extends java.lang.Enum<MongoOperationsProvider.DateToDateTimeConverter> implements org.springframework.core.convert.converter.Converter<java.util.Date,org.joda.time.DateTime>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
convert(java.util.Date source) |
static MongoOperationsProvider.DateToDateTimeConverter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MongoOperationsProvider.DateToDateTimeConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MongoOperationsProvider.DateToDateTimeConverter INSTANCE
public static MongoOperationsProvider.DateToDateTimeConverter[] values()
for (MongoOperationsProvider.DateToDateTimeConverter c : MongoOperationsProvider.DateToDateTimeConverter.values()) System.out.println(c);
public static MongoOperationsProvider.DateToDateTimeConverter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic org.joda.time.DateTime convert(java.util.Date source)
convert
in interface org.springframework.core.convert.converter.Converter<java.util.Date,org.joda.time.DateTime>