Java annotation processors to generate simple, safe, and consistent value objects. Do not repeat yourself, try Immutables, the most comprehensive tool in this field. With Immutables you can generate state-of-the-art immutable objects and builders. Type-safe, null-safe and thread-safe, with no boilerplate. Generate builders for immutable objects and even plain static factory methods. Just add jar to classpath and use. No required runtime dependencies! Guava is supported, but not required. Works out-of-the-box with build tools, integrates into IDEs. Lazy, derived and optional attributes. Comprehensive support for collections as attributes, including Guava collections. Generic parameters. Copy with structural sharing. Singleton and interned instances.

Features

  • Immutables has much higher standards for code readability than other generators
  • Generated APIs are carefully tuned for the best power-to-weight ratio
  • No ugly named identifiers
  • Implementation code is clear, efficient, and have corresponding javadocs
  • Immutables are serialization ready, including JSON and its binary forms
  • Adapt Immutables to your code conventions and tastes

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Immutables

Immutables Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Immutables!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Java

Related Categories

Java Software Development Software

Registered

2023-08-03