public static enum TypeCache.Sort extends java.lang.Enum<TypeCache.Sort>
Enum Constant and Description |
---|
SOFT
Creates a cache where cached types are wrapped by
SoftReference s. |
WEAK
Creates a cache where cached types are wrapped by
WeakReference s. |
Modifier and Type | Method and Description |
---|---|
static TypeCache.Sort |
valueOf(java.lang.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 java.lang.ref.Reference<java.lang.Class<?>> |
wrap(java.lang.Class<?> type)
Wraps a type as a
Reference . |
public static final TypeCache.Sort WEAK
WeakReference
s.public static final TypeCache.Sort SOFT
SoftReference
s.public static TypeCache.Sort[] values()
for (TypeCache.Sort c : TypeCache.Sort.values()) System.out.println(c);
public static TypeCache.Sort valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprotected abstract java.lang.ref.Reference<java.lang.Class<?>> wrap(java.lang.Class<?> type)
Reference
.type
- The type to wrap.