Immutables

Annotation processor to create immutable objects and builders. Feels like Guava's immutable collections but for regular value objects. JSON, Jackson, Gson, JAX-RS integrations included (by immutables)

Immutables Alternatives

Similar projects and alternatives to Immutables

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Immutables alternative or higher similarity.

Immutables discussion

Log in or Post with

Immutables reviews and mentions

Posts with mentions or reviews of Immutables. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-22.
  • Translating 10M lines of Java to Kotlin
    2 projects | news.ycombinator.com | 22 Dec 2024
    > * data class Foo(val theImplementationAndStyleOfDataClasses: String)

    For the purists there are records now in Java (which can be combined with destructuring / pattern matching - there were significant improvements in this area in the last few JDK releases, and more are coming!). In this regard Java had surpassed Kotlin by some margin.

    For the enterprise coders, there is the Immutables project (https://immutables.org) which you can say is Lombok on steroids (but implemented correctly, that is, by generating classes which you can inspect as regular source code, instead of relying on hacking the compiler...).

    > * elvis?.operator?.chaining

    This will hopefully be finally resolved by one of the subprojects of project Valhalla, as a prerequisite for value class support (which cannot be null, so...).

    The others on your list are small and subjective stylistic differences, of course your preference may vary, but should not weigh heavily in any Java vs Kotlin discussion.

  • Unchecked Java: Say Goodbye to Checked Exceptions Forever
    6 projects | news.ycombinator.com | 13 Jul 2023
    This is every Lombok lover's favorite strawman argument I've run into.

    I've been coding in Java professionally for ~20 years. I can count with zero hands the number of times I've been burned by a getter or setter getting changed into something surprising.

    If you really need auto-generated getters/setters/builders - Immutables [1] is a library that does it using bog standard annotation processing rules that don't require hacking your build process.

    [1] https://github.com/immutables/immutables

  • [ANN] RecordBuilder v33 Released
    4 projects | /r/java | 8 Apr 2022
    https://github.com/immutables/immutables/issues/1358 https://bugs.openjdk.java.net/browse/JDK-8281238
  • ExpressiveJava: Re-implementing a simple Scala interpreter in JDK 8/15/17. JDK 17 code nearly identical with use of Records + Pattern Matching + Sealed Types.
    4 projects | /r/java | 24 Dec 2021
    That's good, but I prefer this : https://github.com/immutables/immutables It has all sorts of neat stuff like lazy, defered, cached, defaults etc. Just needs updating to use records.
  • Stop using noargsconstructors and setters (and builders)
    1 project | /r/programming | 30 Nov 2021
    Not bad :) I like using Immutables (which is backed by the style of implementation referenced in the link in https://github.com/immutables/immutables/issues/450)
  • If you could change one thing in the Java and one thing in the JVM, what would you change?
    2 projects | /r/java | 4 May 2021
    Annotation processors? Like Immutables? Those already exists, but the major difference is that an annotation processor cannot change the processed class, but has to create another one.
  • Popular technologies for a full-stack Java developer
    2 projects | /r/java | 3 Feb 2021
    While you’re looking into this I would highly recommend checking out immutables. https://github.com/immutables/immutables It is pretty popular in the industry and very nice!
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Jan 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic Immutables repo stats
7
3,451
4.3
3 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com