org.actorsguildframework
Interface Immutable

All Superinterfaces:
Serializable
All Known Implementing Classes:
ImmediateResult, ImmutableList, ImmutableMap, ImmutableSet, SerializableFreezer, StringList

public interface Immutable
extends Serializable

The Immutable interface declares a class as immutable. Thus after construction the class can not be modified anymore. The actor's guild can not check whether the implementing class is actually adhering to this, so you should carefully check or design any class that is Immutable. If a Immutable, instead of a regular Serializable, is passed to a message, it can be passed by reference and is this must faster. Every immutable class must be Serializable as well. The Java primitives and String are being treated as implicitly immutable by the framework.

See Also:
Writing immutable classes (Wiki)