Class RegExCache

    • Field Detail

      • MAX_CACHE_SIZE

        public static final int MAX_CACHE_SIZE
        The default number of items to keep in the cache
        See Also:
        Constant Field Values
    • Method Detail

      • isInstantiated

        public static boolean isInstantiated()
      • getPattern

        @Nonnull
        public static Pattern getPattern​(@Nonnull @Nonempty @RegEx
                                         String sRegEx)
        Get the cached regular expression pattern.
        Parameters:
        sRegEx - The regular expression to retrieve. May neither be null nor empty.
        Returns:
        The compiled regular expression pattern and never null .
        Throws:
        IllegalArgumentException - If the passed regular expression has an illegal syntax