Pionia Core

Mutability

Trait Mutability.

Utils to know if the current object is mutable or immutable and convert it.

Table of Contents

Methods

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

        
On this page

Search results