@HashCodeAndEqualsPlugin.Enhance public static class TypePool.CacheProvider.WithIllegalResolutionReattempt extends Object implements TypePool.CacheProvider
TypePool.CacheProvider.Discriminating, TypePool.CacheProvider.NoOp, TypePool.CacheProvider.Simple, TypePool.CacheProvider.WithIllegalResolutionReattemptUNRESOLVED| Constructor and Description |
|---|
WithIllegalResolutionReattempt(TypePool.CacheProvider delegate)
Creates a new cache provider that suppresses caching of illegal resolutions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this cache.
|
TypePool.Resolution |
find(String name)
Attempts to find a resolution in this cache.
|
static TypePool.CacheProvider |
of(TypePool.CacheProvider cacheProvider)
Returns a cache provider that suppresses caching of illegal resolutions without wrapping twice.
|
TypePool.Resolution |
register(String name,
TypePool.Resolution resolution)
Registers a resolution in this cache.
|
public WithIllegalResolutionReattempt(TypePool.CacheProvider delegate)
delegate - The cache provider to delegate to.public static TypePool.CacheProvider of(TypePool.CacheProvider cacheProvider)
cacheProvider - The cache provider to potentially wrap.@MaybeNull public TypePool.Resolution find(String name)
find in interface TypePool.CacheProvidername - The name of the type to describe.null if no such resolution can be found in the cache.public TypePool.Resolution register(String name, TypePool.Resolution resolution)
register in interface TypePool.CacheProvidername - The name of the type that is to be registered.resolution - The resolution to register.public void clear()
clear in interface TypePool.CacheProviderCopyright © 2014–2026. All rights reserved.