Interface TypePool.CacheProvider

    • Field Detail

      • UNRESOLVED

        static final TypePool.Resolution UNRESOLVED
        The value that is returned on a cache-miss.
    • Method Detail

      • find

        TypePool.Resolution find​(java.lang.String name)
        Attempts to find a resolution in this cache.
        Parameters:
        name - The name of the type to describe.
        Returns:
        A resolution of the type or null if no such resolution can be found in the cache..
      • register

        TypePool.Resolution register​(java.lang.String name,
                                     TypePool.Resolution resolution)
        Registers a resolution in this cache. If a resolution to the given name already exists in the cache, it should be discarded.
        Parameters:
        name - The name of the type that is to be registered.
        resolution - The resolution to register.
        Returns:
        The oldest version of a resolution that is currently registered in the cache which might be the given resolution or another resolution that was previously registered.
      • clear

        void clear()
        Clears this cache.