Class DateFormatCache


  • public class DateFormatCache
    extends java.lang.Object
    DateFormat cache
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.ThreadLocal<LRUMap<java.lang.String,​java.text.SimpleDateFormat>> formatCache  
      private static int maxSize  
    • Constructor Summary

      Constructors 
      Constructor Description
      DateFormatCache()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.text.SimpleDateFormat getOrCreateDateFormat​(java.lang.String format)  
      • Methods inherited from class java.lang.Object

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

      • maxSize

        private static int maxSize
      • formatCache

        private static java.lang.ThreadLocal<LRUMap<java.lang.String,​java.text.SimpleDateFormat>> formatCache
    • Constructor Detail

      • DateFormatCache

        public DateFormatCache()
    • Method Detail

      • getOrCreateDateFormat

        public static java.text.SimpleDateFormat getOrCreateDateFormat​(java.lang.String format)