private static class date.NullCalendar
extends java.lang.ThreadLocal<java.util.GregorianCalendar>
Allows the caching and reuse of a calendar since construction of these are much more expensive than just reusing the same instance and resetting its state.
Modifier | Constructor and Description |
---|---|
private |
NullCalendar() |
Modifier and Type | Method and Description |
---|---|
protected java.util.GregorianCalendar |
initialValue()
Instantiate the calendar on first access for the current thread.
|