The annotated method does not have any side effects.
sealed class
|
Pure
|
extends
|
Attribute
|
A pure method does not modify the internal state of the object it is called on. In fact, it does not modify any state, which makes it inherently thread-safe.
Method invocation expressions on pure methods can be evaluated in any order and will still yield the same results.