Annotation Type Pure
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) public @interface Pure
Pureis a method annotation that means bothSideEffectFreeandDeterministic. The more important of these, when performing pluggable type-checking, is usuallySideEffectFree.For a discussion of the meaning of
Pureon a constructor, see the documentation ofDeterministic.This annotation is inherited by subtypes, just as if it were meta-annotated with
@InheritedAnnotation.