kotlin.annotations.jvm
public @Interface ReadOnly
extends Annotation
- Annotations
- @Documented
- @Retention:CLASS
- @Target:METHOD, FIELD, PARAMETER, LOCAL_VARIABLE
- Imports
- java.lang.annotation.*
Annotate anything of type descendant from Iterable or Iterator with @ReadOnly if the underlying reference is not intended for mutation.
Note that such a reference is not guaranteed to be immutable. It may refer to an object mutated elsewhere.