static final class DateUtils.DateFormatHolder
extends java.lang.Object
SimpleDateFormat
s. The instances are stored in a
threadlocal way because SimpleDateFormat is not threadsafe as noted in
its javadoc
.Constructor and Description |
---|
DateUtils.DateFormatHolder() |
Modifier and Type | Method and Description |
---|---|
static void |
clearThreadLocal() |
static java.text.SimpleDateFormat |
formatFor(java.lang.String pattern)
creates a
SimpleDateFormat for the requested format string. |
public static java.text.SimpleDateFormat formatFor(java.lang.String pattern)
SimpleDateFormat
for the requested format string.pattern
- a non-null
format String according to
SimpleDateFormat
. The format is not checked against
null
since all paths go through
DateUtils
.apply
to a
different pattern.public static void clearThreadLocal()