public static enum ThreadSafeMap.Type extends java.lang.Enum<ThreadSafeMap.Type>
Enum Constant and Description |
---|
Permanent
Permanent type: Values are store in
ConcurrentHashMap permanently. |
Weak
Weak type: Values are stored in
WeakHashMap . |
Modifier and Type | Method and Description |
---|---|
static ThreadSafeMap.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreadSafeMap.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadSafeMap.Type Permanent
ConcurrentHashMap
permanently.public static final ThreadSafeMap.Type Weak
WeakHashMap
.public static ThreadSafeMap.Type[] values()
for (ThreadSafeMap.Type c : ThreadSafeMap.Type.values()) System.out.println(c);
public static ThreadSafeMap.Type 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 null