|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<IsImmutable>
org.mutabilitydetector.IsImmutable
public enum IsImmutable
The various classifications for instances of classes.
| Enum Constant Summary | |
|---|---|
COULD_NOT_ANALYSE
Instances can be any of IMMUTABLE/EFFECTIVELY_IMMUTABLE/NOT_IMMUTABLE, however, an
internal error has occurred during analysis, and no result is meaningful. |
|
EFFECTIVELY_IMMUTABLE
Instances are only immutable when safely published. |
|
IMMUTABLE
Instances are perfectly immutable, can be safely published without extra synchronisation. |
|
NOT_IMMUTABLE
Instances are not immutable, do not cache and/or share instances, do not publish to multiple threads, do not use as keys in HashMaps. |
|
| Method Summary | |
|---|---|
static IsImmutable |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IsImmutable[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final IsImmutable IMMUTABLE
public static final IsImmutable EFFECTIVELY_IMMUTABLE
public static final IsImmutable NOT_IMMUTABLE
HashMaps.
public static final IsImmutable COULD_NOT_ANALYSE
IMMUTABLE/EFFECTIVELY_IMMUTABLE/NOT_IMMUTABLE, however, an
internal error has occurred during analysis, and no result is meaningful.
| Method Detail |
|---|
public static IsImmutable[] values()
for (IsImmutable c : IsImmutable.values()) System.out.println(c);
public static IsImmutable valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||