public static enum TypePool.CacheProvider.NoOp extends Enum<TypePool.CacheProvider.NoOp> implements TypePool.CacheProvider
TypePool.CacheProvider.NoOp, TypePool.CacheProvider.Simple
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
UNRESOLVED
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this cache.
|
TypePool.Resolution |
find(String name)
Attempts to find a resolution in this cache.
|
TypePool.Resolution |
register(String name,
TypePool.Resolution resolution)
Registers a resolution in this cache.
|
static TypePool.CacheProvider.NoOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypePool.CacheProvider.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypePool.CacheProvider.NoOp INSTANCE
public static TypePool.CacheProvider.NoOp[] values()
for (TypePool.CacheProvider.NoOp c : TypePool.CacheProvider.NoOp.values()) System.out.println(c);
public static TypePool.CacheProvider.NoOp valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic TypePool.Resolution find(String name)
TypePool.CacheProvider
find
in interface TypePool.CacheProvider
name
- 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)
TypePool.CacheProvider
register
in interface TypePool.CacheProvider
name
- The name of the type that is to be registered.resolution
- The resolution to register.public void clear()
TypePool.CacheProvider
clear
in interface TypePool.CacheProvider
Copyright © 2014–2018. All rights reserved.