Package nbbrd.service
Enum Mutability
- All Implemented Interfaces:
Serializable,Comparable<Mutability>
Specifies the type of mutability of a class.
- Author:
- Philippe Charles
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMutable but not thread-safeMutable and thread-safeNot mutable -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MutabilityReturns the enum constant of this type with the specified name.static Mutability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Not mutable -
BASIC
Mutable but not thread-safe -
CONCURRENT
Mutable and thread-safe
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isThreadSafe
public boolean isThreadSafe()
-