SOFT

Similar to the FULL identity map except that the map holds the
objects using soft references. This method allows full garbage
collection when memory is low and provides full caching and guaranteed identity.

SOFT_WEAK

Similar to the WEAK identity map except that it maintains a
most-frequently-used sub-cache. The size of the sub-cache is
proportional to the size of the identity map as specified by
descriptor's setIdentityMapSize() method. The sub-cache
uses soft references to ensure that these objects are
garbage-collected only if the system is low on memory.

CACHE

A cache identity map maintains a fixed number of objects
specified by the application. Objects are removed from the cache
on a least-recently-used basis. This method allows object
identity for the most commonly used objects.
WARNING: Furnishes caching and identity, but does not guarantee
identity.

valueOf

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:

java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name