org.springframework.data.elasticsearch.core.convert
Enum DateTimeConverters.JodaDateTimeConverter
java.lang.Object
java.lang.Enum<DateTimeConverters.JodaDateTimeConverter>
org.springframework.data.elasticsearch.core.convert.DateTimeConverters.JodaDateTimeConverter
- All Implemented Interfaces:
- Serializable, Comparable<DateTimeConverters.JodaDateTimeConverter>, Converter<org.joda.time.ReadableInstant,String>
- Enclosing class:
- DateTimeConverters
public static enum DateTimeConverters.JodaDateTimeConverter
- extends Enum<DateTimeConverters.JodaDateTimeConverter>
- implements Converter<org.joda.time.ReadableInstant,String>
INSTANCE
public static final DateTimeConverters.JodaDateTimeConverter INSTANCE
values
public static DateTimeConverters.JodaDateTimeConverter[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (DateTimeConverters.JodaDateTimeConverter c : DateTimeConverters.JodaDateTimeConverter.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DateTimeConverters.JodaDateTimeConverter valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
convert
public String convert(org.joda.time.ReadableInstant source)
- Specified by:
convert
in interface Converter<org.joda.time.ReadableInstant,String>
Copyright © 2012-2013 BioMed Central. All Rights Reserved.