| Modifier and Type | Field and Description |
|---|---|
| private boolean | mutable
whether this instance is mutable |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MutabilityControl(boolean
true iff this instance is mutableConstructs an instance, explicitly indicating the mutability. |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: true iff this instance is immutableChecks to see whether or not this instance is immutable. |
| public final boolean | Returns: true iff this instance is mutableChecks to see whether or not this instance is mutable. |
| public void | |
| public final void | |
| public final void |
| mutable | back to summary |
|---|---|
| private boolean mutable whether this instance is mutable | |
| MutabilityControl | back to summary |
|---|---|
| public MutabilityControl() Constructs an instance. It is initially mutable. | |
| MutabilityControl | back to summary |
|---|---|
| public MutabilityControl(boolean mutable) Constructs an instance, explicitly indicating the mutability.
| |
| isImmutable | back to summary |
|---|---|
| public final boolean isImmutable() Checks to see whether or not this instance is immutable. This is the
same as calling
| |
| isMutable | back to summary |
|---|---|
| public final boolean isMutable() Checks to see whether or not this instance is mutable.
| |
| setImmutable | back to summary |
|---|---|
| public void setImmutable() Makes this instance immutable. | |
| throwIfImmutable | back to summary |
|---|---|
| public final void throwIfImmutable() Throws | |
| throwIfMutable | back to summary |
|---|---|
| public final void throwIfMutable() Throws | |