idempotent : Java Glossary

go to home page I words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
idempotent
In mathematics it means a number that when multiplied by itself gives the same number, e.g. 0 * 0 = 0 and 1 * 1 = 1.

The computing science world uses the term for any operation than you can use repeatedly safely, and still have the effect of using it only once. This would include operations having no lasting observable effect on the state of the world e.g. a database query with no history of it recorded, and no change to the database, also an operation that if run more than once makes no further changes to the state, e.g. C header files that are safe to include multiple times. It would include an initialisation routine that allocated a singleton only the first time it is run, and thereafter just returns a reference to that singleton. The idempotent operation is permitted to have side effects or change state. It is just that it must be safe to repeat the operation without any further consequential effect.


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/idempotent.html J:\mindprod\jgloss\idempotent.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.101]
You are visitor number 14,901.