Mutability
Trait Mutability.
Utils to know if the current object is mutable or immutable and convert it.
Table of Contents
- isImmutable() : bool
- Returns true if the current class/instance is immutable.
- isMutable() : bool
- Returns true if the current class/instance is mutable.
- toImmutable() : CarbonImmutable
- Return a immutable copy of the instance.
- toMutable() : Carbon
- Return a mutable copy of the instance.
Methods
isImmutable()
Returns true if the current class/instance is immutable.
public
static isImmutable() : bool
Return values
bool —isMutable()
Returns true if the current class/instance is mutable.
public
static isMutable() : bool
Return values
bool —toImmutable()
Return a immutable copy of the instance.
public
toImmutable() : CarbonImmutable
Return values
CarbonImmutable —toMutable()
Return a mutable copy of the instance.
public
toMutable() : Carbon