Jetpack Compose Reference
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-09-24

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
Composables

Keep up to date

Subscribe for Composables product updates: new components, icons, Compose tools, and library releases.

Free Tools

  • SVG to Compose
  • Android Distribution Chart

Resources

  • Compose Unstyled
  • Compose Gradients
  • Compose Examples
  • Components
  • Icons
  • Reference

Explore

  • Documentation
  • Blog

Company

  • About
  • Partners
  • Contact us

Copyright © 2026 Composables.