public class LenientDateTimeField extends DelegatedDateTimeField
LenientDateTimeField is thread-safe and immutable.
LenientChronology
,
StrictDateTimeField
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
LenientDateTimeField(DateTimeField field,
Chronology base) |
Modifier 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
protected LenientDateTimeField(DateTimeField field, Chronology base)
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 fieldCopyright © 2012 JBoss by Red Hat. All Rights Reserved.