- All Implemented Interfaces:
- Enclosing class:
public static enum ThreadSafety.Purpose extends Enum<ThreadSafety.Purpose>
ThreadSafetyutility class can be used by either the bug checker that enforces immutability or by the bug checker that enforces thread-safety. Depending on which of these bug checkers is using this utility, different messages become appropriate.
Nested Class Summary
Enum Constant Summary
Enum Constants Enum Constant DescriptionThis is being used by the immutability bug checkerThis is being used by the thread-safety bug checker
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
valuespublic static ThreadSafety.Purpose values()Returns an array containing the constants of this enum type, in the order they are declared.
- an array containing the constants of this enum type, in the order they are declared
valueOfReturns 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.)