public static enum BinaryDateFunction.Strategy extends Enum<BinaryDateFunction.Strategy> implements BiFunction<Date,Integer,Date>
BinaryDateFunction.| Enum Constant and Description |
|---|
ADD_DAYS
Adds a number of days to a date.
|
ADD_HOURS
Adds a number of hours to a date.
|
ADD_MINUTES
Adds a number of minutes to a date.
|
ADD_MONTHS
Adds a number of months to a date.
|
ADD_QUARTERS
Adds a number of quarters to a date.
|
ADD_SECONDS
Adds a number of seconds to a date.
|
ADD_WEEKS
Adds a number of weeks to a date.
|
ADD_YEARS
Adds a number of years to a date.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
apply(Date date,
Consumer<Calendar> consumer) |
static BinaryDateFunction.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BinaryDateFunction.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfandThen, applypublic static final BinaryDateFunction.Strategy ADD_SECONDS
public static final BinaryDateFunction.Strategy ADD_MINUTES
public static final BinaryDateFunction.Strategy ADD_HOURS
public static final BinaryDateFunction.Strategy ADD_DAYS
public static final BinaryDateFunction.Strategy ADD_WEEKS
public static final BinaryDateFunction.Strategy ADD_MONTHS
public static final BinaryDateFunction.Strategy ADD_QUARTERS
public static final BinaryDateFunction.Strategy ADD_YEARS
public static BinaryDateFunction.Strategy[] values()
for (BinaryDateFunction.Strategy c : BinaryDateFunction.Strategy.values()) System.out.println(c);
public static BinaryDateFunction.Strategy 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 nullCopyright © 2021. All rights reserved.