Class CachingDateParser

java.lang.Object
io.higson.runtime.helper.parser.CachingDateParser

public class CachingDateParser extends Object
The date parser that caches [maxSize] parsing results. This class caches only 10-character long input texts which represent dates without time component.

This is the internal parser used by: - date type decoding - groovy type converter - higson persistence date convertions

  • Constructor Details

    • CachingDateParser

      public CachingDateParser()
  • Method Details

    • setCacheSize

      public static void setCacheSize(int maxSize)
    • parse

      public static Date parse(String text, String pattern)