This article by oneself first published on the Infoq Chinese site: http://www.infoq.com/cn/articles/java-multithreaded-programming-mode-immutable-object. Reprint Please specify Huang Wenhai Source: http://viscent.iteye.com. In the case of
Immutable pattern "indestructible mode"One: Participants in the immutable pattern--->immutable (unchanging) participant1.1:immutable Contributor is a class that cannot change the value of a field.1.2:immutable also does not have any method to change
Immutable pattern "indestructible mode"One: Participants in the immutable pattern--->immutable (unchanging) participant1.1:immutable Contributor is a class that cannot change the value of a field.1.2:immutable also does not have any method to change
There is many reasons due to thestring classhas been made immutableinchJava. These reasonsinchView, concurrency issues, security issues and performance issues. Here isA list of various valid reasons to go forImmutablestring class: string is designed
In the book "Java and Patterns" of Dr. Shanhong, this describes the invariant (immutable) pattern: The state of an object no longer changes after the object is created, which is known as the invariant pattern.
structure of the invariant
The state of an object no longer changes after the object is created, which is known as the invariant pattern.Structure of the invariant patternThe invariant mode enhances the robustness of the object (robustness). The invariant mode allows multiple
PHP design Pattern Notes--Summary, PHP design mode--
First, the introduction
General definition of design patterns no longer say, just about the design patterns I understand, the main purpose of my understanding of design patterns is to make the
Create
Creating Patterns-----Creation pattern
The creation pattern is an abstraction of the class instantiation process.
Some systems need to dynamically determine how objects are created, what objects are created, and how they are
===================================================================================================Pattern class Description---------------------------------------------------------------------------------------------------A regular expression
Today is five. Four Youth Day, I wish you a happy holiday. Look at today this title has appetite, summer, vinegar and shredded potatoes and fried balsam pear suitable for summer to eat, good eat fire. These two dishes should be eaten by most people,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.