public enum CurrentDateTimeProvider extends Enum<CurrentDateTimeProvider> implements DateTimeProvider
DateTimeProvider
simply creating new DateTime
instances for each method call.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
getDateTime()
Returns the
DateTime to be used as modification date. |
static CurrentDateTimeProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CurrentDateTimeProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurrentDateTimeProvider INSTANCE
public static CurrentDateTimeProvider[] values()
for (CurrentDateTimeProvider c : CurrentDateTimeProvider.values()) System.out.println(c);
public static CurrentDateTimeProvider 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.DateTime getDateTime()
DateTimeProvider
DateTime
to be used as modification date.getDateTime
in interface DateTimeProvider
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.