Class DiscFilterRequest.ThreadLocalSimpleDateFormat

  • Enclosing class:
    DiscFilterRequest

    protected static final class DiscFilterRequest.ThreadLocalSimpleDateFormat
    extends java.lang.ThreadLocal<java.text.SimpleDateFormat>
    The set of SimpleDateFormat formats to use in getDateHeader(). Notice that because SimpleDateFormat is not thread-safe, we can't declare formats[] as a static variable.
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadLocalSimpleDateFormat​(java.lang.String format, java.util.Locale locale)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.text.SimpleDateFormat initialValue()  
      java.util.Date parse​(java.lang.String value)  
      • Methods inherited from class java.lang.ThreadLocal

        get, remove, set, withInitial
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadLocalSimpleDateFormat

        public ThreadLocalSimpleDateFormat​(java.lang.String format,
                                           java.util.Locale locale)
    • Method Detail

      • initialValue

        protected java.text.SimpleDateFormat initialValue()
        Overrides:
        initialValue in class java.lang.ThreadLocal<java.text.SimpleDateFormat>
      • parse

        public java.util.Date parse​(java.lang.String value)
                             throws java.text.ParseException
        Throws:
        java.text.ParseException