Enum TypePool.CacheProvider.NoOp

java.lang.Object
java.lang.Enum<TypePool.CacheProvider.NoOp>
net.bytebuddy.pool.TypePool.CacheProvider.NoOp
All Implemented Interfaces:
Serializable, Comparable<TypePool.CacheProvider.NoOp>, java.lang.constant.Constable, TypePool.CacheProvider
Enclosing interface:
TypePool.CacheProvider

public static enum TypePool.CacheProvider.NoOp extends Enum<TypePool.CacheProvider.NoOp> implements TypePool.CacheProvider
A non-operational cache that does not store any type descriptions.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      public static TypePool.CacheProvider.NoOp[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

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

      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(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.
    • clear

      public void clear()
      Clears this cache.
      Specified by:
      clear in interface TypePool.CacheProvider