Global Information Lookup Global Information

Immutable object information


In object-oriented (OO) and functional programming, an immutable object (unchangeable[1] object) is an object whose state cannot be modified after it is created.[2] This is in contrast to a mutable object (changeable object), which can be modified after it is created.[3] In some cases, an object is considered immutable even if some internally used attributes change, but the object's state appears unchanging from an external point of view. For example, an object that uses memoization to cache the results of expensive computations could still be considered an immutable object.

Strings and other concrete objects are typically expressed as immutable objects to improve readability and runtime efficiency in OO programming. Immutable objects are also useful because they are inherently thread-safe.[2] Other benefits are that they are simpler to understand and reason about and offer higher security than mutable objects.[2]

  1. ^ "immutable adjective - Definition, pictures, pronunciation and usage notes - Oxford Advanced Learner's Dictionary at OxfordLearnersDictionaries.com". www.oxfordlearnersdictionaries.com.
  2. ^ a b c Goetz et al. Java Concurrency in Practice. Addison Wesley Professional, 2006, Section 3.4. Immutability
  3. ^ "6.005 — Software Construction".

and 18 Related for: Immutable object information

Request time (Page generated in 0.791 seconds.)

Immutable object

Last Update:

In object-oriented (OO) and functional programming, an immutable object (unchangeable object) is an object whose state cannot be modified after it is...

Word Count : 3757

Value object

Last Update:

remain equal. It is also useful for value objects to be immutable, as client code cannot put the value object in an invalid state or introduce buggy behaviour...

Word Count : 941

Object storage

Last Update:

early incarnations of object storage were used for archiving, as implementations were optimized for data services like immutability, not performance. EMC...

Word Count : 3810

Immutable interface

Last Update:

In object-oriented programming, "immutable interface" is a pattern for designing an immutable object. The immutable interface pattern involves defining...

Word Count : 457

Thread safety

Last Update:

them might be executed simultaneously by another thread. Immutable objects The state of an object cannot be changed after construction. This implies both...

Word Count : 1122

Comparison of functional programming languages

Last Update:

Nathan. "ADT". NPM. Joyent, nodejitsu. Retrieved 26 November 2013. Immutable object#JavaScript "Javascript Data structures". Mozilla Developer Network...

Word Count : 817

Memento pattern

Last Update:

as the state, which is an immutable object in Java. In real-life scenarios the state will almost always be a mutable object, in which case a copy of the...

Word Count : 1536

Object lifetime

Last Update:

state of immutable objects[Wrong clarification needed]. A copy constructor is a constructor which takes a (single) parameter of an existing object of the...

Word Count : 3558

Decorator pattern

Last Update:

pattern Abstract class Abstract factory Aspect-oriented programming Immutable object Gamma, Erich; et al. (1995). Design Patterns. Reading, MA: Addison-Wesley...

Word Count : 4186

Boredom

Last Update:

boredom it produces", and later states that "only an infinite and immutable object—that is, God himself—can fill this infinite abyss." Without stimulus...

Word Count : 3974

String interning

Last Update:

of storing only one copy of each distinct string value, which must be immutable. Interning strings makes some string processing tasks more time-efficient...

Word Count : 953

Key Management Interoperability Protocol

Last Update:

update managed objects. Each managed object comprises an immutable Value like a key-block containing a cryptographic-key. These objects comprise mutable...

Word Count : 1675

Value semantics

Last Update:

an object that only its value counts, not its identity. Immutable objects have value semantics trivially, and in the presence of mutation, an object with...

Word Count : 328

Liskov substitution principle

Last Update:

point as a subtype of an immutable point. This is a violation of the history constraint, because in the history of the immutable point, the state is always...

Word Count : 1191

Purely functional data structure

Last Update:

(strongly) immutable. This restriction ensures the data structure possesses the advantages of immutable objects: (full) persistency, quick copy of objects, and...

Word Count : 1392

It Is What It Is

Last Update:

Is" is a tautophrase, and an idiomatic phrase, indicating the immutable nature of an object or circumstance. It may refer also to: B.A.R.S. The Barry Adrian...

Word Count : 389

Primitive wrapper class in Java

Last Update:

Immutable Objects: Which classes are Immutable?". Java Ranch. Retrieved 2012-05-14. The classes java.math.BigInteger and BigDecimal are not immutable...

Word Count : 513

Panzura

Last Update:

data protection and disaster recovery capabilities derived from its Immutable object architecture. Panzura licenses software as a service data management...

Word Count : 854

PDF Search Engine © AllGlobal.net