Enum NullTemplateCache

    • Enum Constant Detail

      • INSTANCE

        public static final NullTemplateCache INSTANCE
        Shared instance of null cache.
    • Method Detail

      • values

        public static NullTemplateCache[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NullTemplateCache c : NullTemplateCache.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NullTemplateCache valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • clear

        public void clear()
        Description copied from interface: TemplateCache
        Remove all mappings from the cache.
        Specified by:
        clear in interface TemplateCache
      • evict

        public void evict​(TemplateSource source)
        Description copied from interface: TemplateCache
        Evict the mapping for this source from this cache if it is present.
        Specified by:
        evict in interface TemplateCache
        source - the source whose mapping is to be removed from the cache
      • get

        public Template get​(TemplateSource source,
                            Parser parser)
                     throws IOException
        Description copied from interface: TemplateCache
        Return the value to which this cache maps the specified key.
        Specified by:
        get in interface TemplateCache
        source - source whose associated template is to be returned.
        parser - The Handlebars parser.
        A template.
        IOException - If input can't be parsed.