Object Oriented Software Engineering View all facts Glossary Help |
subject > pattern > design pattern > immutable |
immutable | ||||
subject | fact |
immutable | has definition A pattern in which the instances of a class cannot change state after creation | |
has context
| ||
has forces html>
| ||
has problem How do you create a class whose instances are immutable? | ||
has related patterns Read-Only Interface pattern provides the same capability as immutable, except that certain privileged classes are allowed to make changes to instances. | ||
has solution | ||
is a subtopic of 6.10 - The Immutable Pattern | ||
is an instance of design pattern | ||
design pattern | has antipatterns zero or more antipatterns - solutions that are inferior or do not work in this context with the reason for their rejection | |
has name | ||
has references one or more references which indicate who developed or inspired a pattern | ||
should be illustrated using a simple diagram | ||
should be written using a narrative writing style | ||
pattern | should be as general as possible | |
should be described in an easy-to-understand form so that people can determine when and how to use it | ||
should contain a solution that has been proven to effectively solve the problem in the indicated context |
Next design pattern: observer Up: design pattern Previous design pattern: general hierarchy