|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.time.DateTimeField org.joda.time.field.DelegatedDateTimeField org.joda.time.field.LenientDateTimeField
Converts a strict DateTimeField into a lenient one. By being lenient, the set method accepts out of bounds values, performing an addition instead.
LenientDateTimeField is thread-safe and immutable.
LenientChronology
,
StrictDateTimeField
,
Serialized FormMethod Summary | |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |