@WritingConverter public static enum Jsr310Converters.LocalDateTimeToDateConverter extends Enum<Jsr310Converters.LocalDateTimeToDateConverter> implements Converter<LocalDateTime,Date>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Date |
convert(LocalDateTime source) |
static Jsr310Converters.LocalDateTimeToDateConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Jsr310Converters.LocalDateTimeToDateConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Jsr310Converters.LocalDateTimeToDateConverter INSTANCE
public static Jsr310Converters.LocalDateTimeToDateConverter[] values()
for (Jsr310Converters.LocalDateTimeToDateConverter c : Jsr310Converters.LocalDateTimeToDateConverter.values()) System.out.println(c);
public static Jsr310Converters.LocalDateTimeToDateConverter 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 null@Nonnull public Date convert(LocalDateTime source)
convert
in interface Converter<LocalDateTime,Date>
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.