public static enum TypeCache.Sort extends Enum<TypeCache.Sort>
| Enum Constant and Description |
|---|
SOFT
Creates a cache where cached types are wrapped by
SoftReferences. |
WEAK
Creates a cache where cached types are wrapped by
WeakReferences. |
| Modifier and Type | Method and Description |
|---|---|
static TypeCache.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeCache.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
protected abstract Reference<Class<?>> |
wrap(Class<?> type)
Wraps a type as a
Reference. |
public static final TypeCache.Sort WEAK
WeakReferences.public static final TypeCache.Sort SOFT
SoftReferences.public static TypeCache.Sort[] values()
for (TypeCache.Sort c : TypeCache.Sort.values()) System.out.println(c);
public static TypeCache.Sort 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 nullCopyright © 2014–2019. All rights reserved.