io.sarl.lang.typesystem
Interface IImmutableTypeValidator
All Known Implementing Classes:
DefaultImmutableTypeValidator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or action reference.
interface IImmutableTypeValidator
Tool for validating the types against their immutability.

An immutable type is a type those state cannot be changed after it is constructed.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.8
Action Summary
Modifier and type Action and description
abstract boolean isImmutable(LightweightTypeReference)
Replies if the given type is associated to an immutable type.
Action Details
isImmutable(LightweightTypeReference)
def isImmutable(LightweightTypeReference) : boolean
Replies if the given type is associated to an immutable type.

An unmodifiable type is a primitive type or an object type those state cannot be changed after is it created in memory, e.g. String.
Parameters:
type - the type to test.
Returns:
true if the given type is known as unmodifiable. Otherwise false .