private static class date.ZoneCalendar
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 and Type | Field and Description |
---|---|
private java.util.TimeZone |
zone
The timezone for which a calendar must be returned.
|
Constructor and Description |
---|
ZoneCalendar(java.util.TimeZone zone)
Construct a new instance of a timezone-specific calendar cache.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.GregorianCalendar |
initialValue()
Instantiate the calendar on first access for the current thread.
|