public static enum ThreadSafety.ThreadSafetyLevel extends Enum<ThreadSafety.ThreadSafetyLevel>
| Enum Constant and Description |
|---|
CONDITIONALLY_THREAD_SAFE
Conditionally thread safe.
|
IMMUTABLE
Immutable.
|
NOT_THREAD_SAFE
Not thread safe.
|
THREAD_SAFE
Thread safe.
|
| Modifier and Type | Method and Description |
|---|---|
static ThreadSafety.ThreadSafetyLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadSafety.ThreadSafetyLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadSafety.ThreadSafetyLevel IMMUTABLE
public static final ThreadSafety.ThreadSafetyLevel THREAD_SAFE
public static final ThreadSafety.ThreadSafetyLevel CONDITIONALLY_THREAD_SAFE
public static final ThreadSafety.ThreadSafetyLevel NOT_THREAD_SAFE
public static ThreadSafety.ThreadSafetyLevel[] values()
for (ThreadSafety.ThreadSafetyLevel c : ThreadSafety.ThreadSafetyLevel.values()) System.out.println(c);
public static ThreadSafety.ThreadSafetyLevel 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 © 2008–2017. All rights reserved.