public final class DateResolvers extends Object
DateResolver
.
DateResolvers is a utility class. All resolvers returned are immutable and thread-safe.
Modifier and Type | Method and Description |
---|---|
static DateResolver |
nextValid()
Returns the next valid day resolver, which adjusts the date to be
valid by moving to the first of the next month.
|
static DateResolver |
partLenient()
Returns the part lenient resolver, which adjusts the date to be
valid by moving it to the next month by the number of days that
are invalid up to the 31st of the month.
|
static DateResolver |
previousValid()
Returns the previous valid day resolver, which adjusts the date to be
valid by moving to the last valid day of the month.
|
static DateResolver |
strict()
Returns the strict resolver which does not manipulate the state
in any way, resulting in an exception for all invalid values.
|
public static DateResolver strict()
public static DateResolver previousValid()
public static DateResolver nextValid()
public static DateResolver partLenient()
Copyright © 2014. All rights reserved.