public class LenientDateTimeField extends DelegatedDateTimeField
LenientDateTimeField is thread-safe and immutable.
LenientChronology
,
StrictDateTimeField
,
Serialized FormModifier and Type | Method and Description |
---|---|
static DateTimeField |
getInstance(DateTimeField field,
Chronology base)
Returns a lenient version of the given field.
|
boolean |
isLenient()
Returns true if the set method is lenient.
|
long |
set(long instant,
int value)
Set values which may be out of bounds by adding the difference between
the new value and the current value.
|
add, add, add, addWrapField, addWrapField, addWrapPartial, get, getAsShortText, getAsShortText, getAsShortText, getAsShortText, getAsShortText, getAsText, getAsText, getAsText, getAsText, getAsText, getDifference, getDifferenceAsLong, getDurationField, getLeapAmount, getLeapDurationField, getMaximumShortTextLength, getMaximumTextLength, getMaximumValue, getMaximumValue, getMaximumValue, getMaximumValue, getMinimumValue, getMinimumValue, getMinimumValue, getMinimumValue, getName, getRangeDurationField, getType, getWrappedField, isLeap, isSupported, remainder, roundCeiling, roundFloor, roundHalfCeiling, roundHalfEven, roundHalfFloor, set, set, set, set, toString
setExtended
public static DateTimeField getInstance(DateTimeField field, Chronology base)
public final boolean isLenient()
DateTimeField
isLenient
in class DelegatedDateTimeField
public long set(long instant, int value)
set
in class DelegatedDateTimeField
instant
- the milliseconds from 1970-01-01T00:00:00Z to set invalue
- the value to set, in the units of the field"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"