|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Immutable
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||