public static enum CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter extends Enum<CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter> implements org.springframework.core.convert.converter.Converter<com.datastax.driver.core.LocalDate,org.joda.time.DateMidnight>
LocalDate
s to their DateMidnight
representation.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateMidnight |
convert(com.datastax.driver.core.LocalDate source) |
static CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter INSTANCE
public static CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter[] values()
for (CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter c : CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter.values()) System.out.println(c);
public static CassandraJodaTimeConverters.CassandraLocalDateToDateMidnightConverter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.joda.time.DateMidnight convert(com.datastax.driver.core.LocalDate source)
convert
in interface org.springframework.core.convert.converter.Converter<com.datastax.driver.core.LocalDate,org.joda.time.DateMidnight>
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.