Enum TypePool.CacheProvider.NoOp

    • Constructor Detail

      • NoOp

        private NoOp()
    • Method Detail

      • values

        public static TypePool.CacheProvider.NoOp[] 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 (TypePool.CacheProvider.NoOp c : TypePool.CacheProvider.NoOp.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypePool.CacheProvider.NoOp valueOf​(java.lang.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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • find

        public TypePool.Resolution find​(java.lang.String name)
        Attempts to find a resolution in this cache.
        Specified by:
        find in interface TypePool.CacheProvider
        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

        public 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.
        Specified by:
        register in interface TypePool.CacheProvider
        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.