runtime-annotation
Classes
  • DoNotRetain
  • FrequentlyChangingValue
  • Immutable
  • RememberInComposition
  • Stable
  • StableMarker
Jetpack Compose / Compose Runtime / runtime-annotation / Classes / Immutable
Class

Immutable

View Markdown Open in ChatGPT Open in Claude

Immutable can be used to mark class as producing immutable instances.

CodeRabbit

CodeRabbit

AI writes the code. CodeRabbit catches the slop.

Ad Try CodeRabbit for Free
API

Examples

simpleImmutableClass

@Sampled
fun simpleImmutableClass() {

Content updated: 2026-10-21

FrequentlyChangingValue ← Previous RememberInComposition Next →

On this page

  • simpleImmutableClass
Reach Android developers Put your product in front of engineers building Android and KMP apps. Sponsor Composables